-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Zinnia.versions.{zinnia,v8} (#261)
Add a new Zinnia API exposing runtime and V8 versions to modules. Signed-off-by: Miroslav Bajtoš <[email protected]> Co-authored-by: Julian Gruber <[email protected]>
- Loading branch information
1 parent
a4a9643
commit 8e3036e
Showing
8 changed files
with
69 additions
and
11 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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { test } from "zinnia:test"; | ||
import { assertMatch, assertEquals, assertArrayIncludes } from "zinnia:assert"; | ||
|
||
console.log(Zinnia.versions); | ||
|
||
test("Zinnia.versions", () => { | ||
assertArrayIncludes(Object.keys(Zinnia), ["versions"], "Zinnia properties"); | ||
assertEquals(typeof Zinnia.versions, "object", "typeof Zinnia.versions"); | ||
}); | ||
|
||
test("Zinnia.versions.zinnia", () => { | ||
assertArrayIncludes(Object.keys(Zinnia.versions), ["zinnia"], "Zinnia.versions properties"); | ||
assertMatch(Zinnia.versions.zinnia, /^\d+\.\d+\.\d+$/); | ||
}); | ||
|
||
test("Zinnia.versions.v8", () => { | ||
assertArrayIncludes(Object.keys(Zinnia.versions), ["v8"], "Zinnia.versions properties"); | ||
assertMatch(Zinnia.versions.v8, /^\d+\.\d+\.\d+\.\d+$/); | ||
}); |
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