@acryldev/blends 1.7.24 → 1.7.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -34,7 +34,9 @@ test('serves the index route: the first screen to a browser, the JSON hello to a
|
|
|
34
34
|
withApp(async (app) => {
|
|
35
35
|
const api = await app.root.router.request(`/`)
|
|
36
36
|
assert.equal(api.status, 200)
|
|
37
|
-
|
|
37
|
+
// The app answers with its instance's name: the folder's or the package's, which `create-acrylblends --from` and a WebBox change after the app was written.
|
|
38
|
+
const appName = app.root.get('appInstance')?.name ?? APP_NAME
|
|
39
|
+
assert.deepEqual(await api.json(), { app: appName, ok: true })
|
|
38
40
|
const page = await app.root.router.request(`/`, {
|
|
39
41
|
headers: { accept: 'text/html,application/xhtml+xml,*/*;q=0.8' },
|
|
40
42
|
})
|
|
@@ -42,7 +44,7 @@ test('serves the index route: the first screen to a browser, the JSON hello to a
|
|
|
42
44
|
assert.match(page.headers.get('content-type') ?? '', /text\/html/)
|
|
43
45
|
const html = await page.text()
|
|
44
46
|
// The ACRYL frame's first tile asks for a page: the root must never hand it JSON (Chrome's viewer is nearly invisible in the dark frame).
|
|
45
|
-
assert.ok(html.includes(`<h1>${
|
|
47
|
+
assert.ok(html.includes(`<h1>${appName}</h1>`), 'the page names the app')
|
|
46
48
|
assert.ok(html.includes('href="./about"'), 'the page links to About relatively')
|
|
47
49
|
}))
|
|
48
50
|
|