arma-server-web-admin/test/lib/mods.js
Björn Dahlgren 00eb69050f Tests
2015-02-28 15:43:57 +01:00

23 lines
547 B
JavaScript

var should = require('should');
var Mods = require('../../lib/mods.js');
describe('Mods', function() {
describe('removeDuplicates()', function() {
it('should remove duplicate mods', function() {
Mods.removeDuplicates(['mod1', 'mod1']).should.eql(['mod1']);
});
});
describe('search()', function() {
it('should find mods', function(done) {
var mods = new Mods();
mods.search('', function (err, mods) {
should(err).be.null;
mods.should.not.be.empty;
done();
});
});
});
});