arma-server-web-admin/test/lib/steam_mods.js
2017-04-01 13:24:54 +02:00

22 lines
427 B
JavaScript

var should = 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]);
});
});
});