mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
22 lines
406 B
JavaScript
22 lines
406 B
JavaScript
require('should')
|
|
|
|
var SteamMods = require('../../lib/steam_mods.js')
|
|
|
|
var dummyMods = [
|
|
{
|
|
id: 'test',
|
|
name: 'test'
|
|
}
|
|
]
|
|
|
|
describe('SteamMods', function () {
|
|
describe('find()', function () {
|
|
it('should find mod', function () {
|
|
var steamMods = new SteamMods({})
|
|
steamMods.mods = dummyMods
|
|
var mod = steamMods.find('test')
|
|
mod.should.eql(dummyMods[0])
|
|
})
|
|
})
|
|
})
|