feat: add adaptive soundtrack layer assets
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user