mirror of
https://github.com/rustfs/console.git
synced 2026-08-31 01:37:52 +08:00
14 lines
383 B
JavaScript
14 lines
383 B
JavaScript
import test from "node:test"
|
|
import assert from "node:assert/strict"
|
|
import fs from "node:fs"
|
|
|
|
const manifest = JSON.parse(fs.readFileSync("app/manifest.webmanifest", "utf8"))
|
|
|
|
test("web manifest asset URLs resolve relative to the app base path", () => {
|
|
assert.equal(manifest.start_url, ".")
|
|
|
|
for (const icon of manifest.icons) {
|
|
assert.doesNotMatch(icon.src, /^\//)
|
|
}
|
|
})
|