15 lines
518 B
JavaScript
15 lines
518 B
JavaScript
import test from "node:test";
|
|
import assert from "node:assert/strict";
|
|
import fs from "node:fs";
|
|
import path from "node:path";
|
|
|
|
test("POSTV1-11 release accepts the Codex embedded Chrome major", () => {
|
|
const release = JSON.parse(
|
|
fs.readFileSync(path.resolve("RELEASE.json"), "utf8"),
|
|
);
|
|
const chrome = release.browsers.find(({ brand }) => brand === "Google Chrome");
|
|
|
|
assert.ok(chrome, "release must include Google Chrome");
|
|
assert.equal(Number.parseInt(chrome.fullVersion.split(".")[0], 10), 151);
|
|
});
|