Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
matthewbauer
GitHub Repository: matthewbauer/gametime-player
Path: blob/master/test.js
1044 views
1
var test = require('ava')
2
var utils = require('./utils')
3
4
var files = {
5
'Pokemon Ruby.GBA': 'gba',
6
'Pokemon Sapphire.GBA': 'gba',
7
'new_Pokemon - Light Platinum.gba': 'gba',
8
'Pokemon - Emerald Version (U) (1).gba': 'gba',
9
'PokemonGold.gbc': 'gbc',
10
'PokemonRed (2) (1).gbc': 'gbc'
11
}
12
13
test('testing file name detection', function(t) {
14
for (var file in files) {
15
t.is(files[file], utils.getExtension(file))
16
}
17
t.end()
18
})
19
20