mirror of
https://github.com/got-feedBack/feedBack.git
synced 2026-08-15 13:17:25 +00:00
test(career): assert exact arena manifest mappings (#962)
CodeRabbit follow-up on #961: presence checks alone would pass with swapped loop filenames; assert the full loops/stingers/sfx objects. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
ea9da0acde
commit
af611770aa
@@ -55,8 +55,12 @@ test('arena venue pack ships with full media in the plugin checkout', () => {
|
|||||||
const packDir = path.join(PLUGIN_DIR, 'venue-packs', 'arena');
|
const packDir = path.join(PLUGIN_DIR, 'venue-packs', 'arena');
|
||||||
const manifest = JSON.parse(fs.readFileSync(path.join(packDir, 'manifest.json'), 'utf8'));
|
const manifest = JSON.parse(fs.readFileSync(path.join(packDir, 'manifest.json'), 'utf8'));
|
||||||
assert.equal(manifest.venue, 'arena');
|
assert.equal(manifest.venue, 'arena');
|
||||||
assert.deepEqual(Object.keys(manifest.loops).sort(),
|
assert.deepEqual(manifest.loops, {
|
||||||
['bored', 'ecstatic', 'engaged', 'neutral']);
|
bored: 'bored.mp4', neutral: 'neutral.mp4',
|
||||||
|
engaged: 'engaged.mp4', ecstatic: 'ecstatic.mp4',
|
||||||
|
});
|
||||||
|
assert.deepEqual(manifest.stingers, { clap: 'clap.mp4', cheer: 'cheer.mp4' });
|
||||||
|
assert.deepEqual(manifest.sfx, { up: 'sfx-up.mp3', down: 'sfx-down.mp3' });
|
||||||
assert.equal(manifest.intro.video, 'intro.mp4');
|
assert.equal(manifest.intro.video, 'intro.mp4');
|
||||||
assert.equal(manifest.intro.audio, 'arena-ambience.mp3');
|
assert.equal(manifest.intro.audio, 'arena-ambience.mp3');
|
||||||
for (const f of [
|
for (const f of [
|
||||||
|
|||||||
Reference in New Issue
Block a user