Skip to content

Commit fa523f4

Browse files
committed
test(utils): add test case
1 parent ea2ffbd commit fa523f4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

utils_test.ts

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {
22
applyPrecondition,
33
ascendPreconditionHeader,
4+
hasToken,
45
type Ord,
56
toPriority,
67
withoutConditionHeaders,
@@ -189,3 +190,9 @@ describe("withoutConditionHeaders", () => {
189190
);
190191
});
191192
});
193+
194+
describe("hasToken", () => {
195+
it("should return false if the input is invalid syntax", () => {
196+
assert(!hasToken("", "none"));
197+
});
198+
});

0 commit comments

Comments
 (0)