feat: release Find-Word v0.2.3
This commit is contained in:
@@ -19,3 +19,21 @@ test("릴리스는 사용자 크레딧과 런타임 MIT notice 전문을 제공
|
||||
readFileSync("THIRD_PARTY_NOTICES.md", "utf8"),
|
||||
);
|
||||
});
|
||||
|
||||
// Accept: text/html을 보내도 누락 오디오는 SPA 문서로 대체하지 않아야 한다.
|
||||
test("누락 음성·환경음은 query와 HTML accept에도 404이고 출처 고지는 번들된다", async ({
|
||||
request,
|
||||
}) => {
|
||||
for (const directory of ["audio", "ambience"]) {
|
||||
const response = await request.get(`/${directory}/not-found.wav?v=0.2.3`, {
|
||||
headers: { Accept: "text/html" },
|
||||
});
|
||||
expect(response.status()).toBe(404);
|
||||
expect(await response.text()).not.toContain('<div id="root">');
|
||||
}
|
||||
const notice = await request.get("/ambience/AMBIENCE_NOTICES.md");
|
||||
expect(notice.ok()).toBe(true);
|
||||
expect(await notice.text()).toBe(
|
||||
readFileSync("public/ambience/AMBIENCE_NOTICES.md", "utf8"),
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user