-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JSdoc tweaks, added an additional test, tweaked return type when crea…
…ting a message boundary protocol implementation (it always contains a `getCLIFlags` method), removed deprecated nested options from deno.jsonc, changed coverage task to report detailed coverage.
- Loading branch information
Filip Maj
committed
Jun 5, 2024
1 parent
761d788
commit 91d1ac8
Showing
5 changed files
with
26 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import { assertMatch } from "https://deno.land/[email protected]/testing/asserts.ts"; | ||
import { | ||
assertEquals, | ||
assertNotEquals, | ||
|
@@ -45,6 +46,13 @@ Deno.test("MessageBoundaryProtocol", async (t) => { | |
globalThis.console.log = origLog; | ||
}, | ||
); | ||
await t.step("should return a `getCLIFlags` method that returns correct --protocol and --boundary flags", () => { | ||
const providedFlags = ["--boundary=12345"]; | ||
const prot = MessageBoundaryProtocol(providedFlags); | ||
const flags = prot.getCLIFlags(); | ||
assertMatch(flags[0], /message-boundaries/); | ||
assertEquals(flags[1], providedFlags[0]); | ||
}); | ||
}); | ||
|
||
Deno.test("getProtocolInterface()", async (t) => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters