|
1 | 1 | import { compareField } from "@coven/cron";
|
2 |
| -import { assertStrictEquals } from "@std/assert"; |
| 2 | +import { assert, assertFalse } from "@std/assert"; |
3 | 3 |
|
4 |
| -Deno.test("Two equal values return true", () => |
5 |
| - // deno-lint-ignore no-boolean-literal-for-arguments |
6 |
| - assertStrictEquals(compareField(13, 13), true)); |
| 4 | +Deno.test("Two equal values returns true", () => assert(compareField(13, 13))); |
7 | 5 |
|
8 |
| -Deno.test("Two different values return false", () => |
9 |
| - // deno-lint-ignore no-boolean-literal-for-arguments |
10 |
| - assertStrictEquals(compareField(13, 99), false)); |
| 6 | +Deno.test("Two different values returns false", () => |
| 7 | + assertFalse(compareField(13, 99))); |
11 | 8 |
|
12 |
| -Deno.test("Value and a range that contains it return true", () => |
13 |
| - // deno-lint-ignore no-boolean-literal-for-arguments |
14 |
| - assertStrictEquals(compareField(13, { from: 0, to: 99 }), true)); |
| 9 | +Deno.test("Value and a range that contains it returns true", () => |
| 10 | + assert(compareField(13, { from: 0, to: 99 }))); |
15 | 11 |
|
16 |
| -Deno.test("Value and a range that doesn't contain it return true", () => |
17 |
| - // deno-lint-ignore no-boolean-literal-for-arguments |
18 |
| - assertStrictEquals(compareField(13, { from: 0, to: 10 }), false)); |
| 12 | +Deno.test("Value and a range that doesn't contain it returns true", () => |
| 13 | + assertFalse(compareField(13, { from: 0, to: 10 }))); |
19 | 14 |
|
20 |
| -Deno.test("Value and a list that contains it return true", () => |
21 |
| - // deno-lint-ignore no-boolean-literal-for-arguments |
22 |
| - assertStrictEquals(compareField(13, [10, 13]), true)); |
| 15 | +Deno.test("Value and a list that contains it returns true", () => |
| 16 | + assert(compareField(13, [10, 13]))); |
23 | 17 |
|
24 |
| -Deno.test("Value and a list that doesn't contain it return true", () => |
25 |
| - // deno-lint-ignore no-boolean-literal-for-arguments |
26 |
| - assertStrictEquals(compareField(13, [10, 12]), false)); |
| 18 | +Deno.test("Value and a list that doesn't contain it returns true", () => |
| 19 | + assertFalse(compareField(13, [10, 12]))); |
27 | 20 |
|
28 |
| -Deno.test("Value and a list with a range that contains it return true", () => |
29 |
| - // deno-lint-ignore no-boolean-literal-for-arguments |
30 |
| - assertStrictEquals(compareField(13, [10, { from: 11, to: 99 }]), true)); |
| 21 | +Deno.test("Value and a list with a range that contains it returns true", () => |
| 22 | + assert(compareField(13, [10, { from: 11, to: 99 }]))); |
31 | 23 |
|
32 |
| -Deno.test("Value and a list with a range that doesn't contain it return true", () => |
33 |
| - // deno-lint-ignore no-boolean-literal-for-arguments |
34 |
| - assertStrictEquals(compareField(13, [5, { from: 10, to: 12 }]), false)); |
| 24 | +Deno.test("Value and a list with a range that doesn't contain it returns true", () => |
| 25 | + assertFalse(compareField(13, [5, { from: 10, to: 12 }]))); |
0 commit comments