Fix Effect idiom test validation
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
1 parent
6ba2bf0743
commit
311a8f7413
2 files changed
+6
-2
No files matched your search
@@ -31,7 +31,9 @@ it.effect("decodes compact duration shorthands", () =>
|
||||
|
||||
it.effect("rejects invalid duration strings", () =>
|
||||
Effect.gen(function* () {
|
||||
const error = yield* Effect.flip(Schema.decodeUnknownEffect(DurationFromString)("not-a-duration"));
|
||||
const error = yield* Effect.flip(
|
||||
Schema.decodeUnknownEffect(DurationFromString)("not-a-duration"),
|
||||
);
|
||||
|
||||
assert.include(String(error), "Invalid duration");
|
||||
}),
|
||||
|
||||
@@ -67,7 +67,9 @@ describe("vcsActionState", () => {
|
||||
it("round-trips target keys through a Schema JSON codec", () => {
|
||||
const key = getVcsActionTargetKey({ environmentId, cwd });
|
||||
|
||||
assert.isString(key);
|
||||
if (key === null) {
|
||||
assert.fail("expected target key to be encoded");
|
||||
}
|
||||
assert.deepStrictEqual(parseVcsActionTargetKey(key), { environmentId, cwd });
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user