Skip to content

Commit 0f8deb6

Browse files
committed
Improve a test assertion
1 parent 51ea2a4 commit 0f8deb6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/language/runtime/evaluator.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ testCases(evaluate, input => `evaluating \`${JSON.stringify(input)}\``)(
5959
],
6060
],
6161
output => {
62-
assert(!either.isLeft(output))
62+
if (either.isLeft(output)) {
63+
assert.fail(output.value.message)
64+
}
6365
assert(typeof output.value === 'object')
6466
assert(output.value['tag'] === 'some')
6567
assert(typeof output.value['value'] === 'string')

0 commit comments

Comments
 (0)