Skip to content

Commit

Permalink
implement unit tests for added tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Julia Mono Brunenberg committed Nov 7, 2023
1 parent cca3a79 commit 0443a99
Showing 1 changed file with 21 additions and 26 deletions.
47 changes: 21 additions & 26 deletions test/outputFactory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -606,32 +606,27 @@ describe('token replacement', () => {
},
);
test.each([
['game.a26', path.join('roms', 'a26', 'game.a26')],
['game.a52', path.join('roms', 'a52', 'game.a52')],
['game.a78', path.join('roms', 'a78', 'game.a78')],
['game.ws', path.join('roms', 'ws', 'game.ws')],
['game.wsc', path.join('roms', 'ws', 'game.wsc')],
['game.col', path.join('roms', 'col', 'game.col')],
['game.pce', path.join('roms', 'tg16', 'game.pce')],
['game.gb', path.join('roms', 'gb', 'game.gb')],
['game.sgb', path.join('roms', 'gb', 'game.sgb')],
['game.gbc', path.join('roms', 'gb', 'game.gbc')],
['game.gba', path.join('roms', 'gba', 'game.gba')],
['game.srl', path.join('roms', 'gba', 'game.srl')],
['game.nds', path.join('roms', 'nds', 'game.nds')],
['game.nes', path.join('roms', 'nes', 'game.nes')],
['game.sfc', path.join('roms', 'snes', 'game.sfc')],
['game.smc', path.join('roms', 'snes', 'game.smc')],
['game.gg', path.join('roms', 'gg', 'game.gg')],
['game.sms', path.join('roms', 'sms', 'game.sms')],
['game.gen', path.join('roms', 'gen', 'game.gen')],
['game.md', path.join('roms', 'gen', 'game.md')],
['game.smd', path.join('roms', 'gen', 'game.smd')],
['game.sc', path.join('roms', 'sg', 'game.sc')],
['game.sg', path.join('roms', 'sg', 'game.sg')],
['game.ngp', path.join('roms', 'ngp', 'game.ngp')],
['game.ngc', path.join('roms', 'ngp', 'game.ngc')],

['game.a26', path.join('roms', '2600', 'game.a26')],
['game.lnx', path.join('roms', 'LYNX', 'game.lnx')],
['game.ws', path.join('roms', 'WSWAN', 'game.ws')],
['game.wsc', path.join('roms', 'WSWAN', 'game.wsc')], // TODO: check if this works
['game.vec', path.join('roms', 'VECTREX', 'game.vec')],
['game.pce', path.join('roms', 'PCE', 'game.pce')],
['game.gb', path.join('roms', 'GB', 'game.gb')],
['game.sgb', path.join('roms', 'GB', 'game.sgb')],
['game.gbc', path.join('roms', 'GB', 'game.gbc')],
['game.gba', path.join('roms', 'GBA', 'game.gba')],
['game.srl', path.join('roms', 'GBA', 'game.srl')],
['game.nes', path.join('roms', 'NES', 'game.nes')],
['game.fds', path.join('roms', 'NES', 'game.fds')],
['game.sfc', path.join('roms', 'SNES', 'game.sfc')],
['game.smc', path.join('roms', 'SNES', 'game.smc')],
['game.min', path.join('roms', 'POKEMINI', 'game.min')],
['game.gg', path.join('roms', 'SMS', 'game.gg')],
['game.sms', path.join('roms', 'SMS', 'game.sms')],
['game.gen', path.join('roms', 'SMD', 'game.gen')],
['game.md', path.join('roms', 'SMD', 'game.md')],
['game.smd', path.join('roms', 'SMD', 'game.smd')],
])(
'should replace {miyoocfw} for known extension: %s',
async (outputRomFilename, expectedPath) => {
Expand Down

0 comments on commit 0443a99

Please sign in to comment.