feat: add adaptive soundtrack layer assets

This commit is contained in:
2026-09-04 15:13:38 +03:00
parent 0b52d75f01
commit 3d01b3ec07
16 changed files with 119 additions and 5 deletions

View File

@@ -118,6 +118,28 @@ describe('artifact verification', () => {
await expect(verifyArtifactDirectory(directory, inputs, contract)).resolves.toBeUndefined();
});
it.each([
{
name: 'an omitted adaptive soundtrack file',
mutate: async (directory: string) => rm(join(directory, 'assets/nightdrive-afterglow.opus')),
error: /missing.*artifact|digest|public asset/iu,
},
{
name: 'an altered adaptive soundtrack file',
mutate: async (directory: string) => writeFile(join(directory, 'assets/nightdrive-drive-lift.mp3'), 'altered'),
error: /digest does not match|hash/u,
},
{
name: 'an unreferenced adaptive soundtrack file',
mutate: async (directory: string) => writeFile(join(directory, 'assets/nightdrive-unreferenced.opus'), 'unreferenced'),
error: /unexpected artifact|unreferenced/u,
},
])('rejects $name', async ({ mutate, error }) => {
const { directory, inputs, contract } = await writeValidArtifacts();
await mutate(directory);
await expect(verifyArtifactDirectory(directory, inputs, contract)).rejects.toThrow(error);
});
it.each([
{
name: 'an unexpected preview sitemap',