arma-server-web-admin/test/lib/server.js

13 lines
330 B
JavaScript
Raw Normal View History

2015-02-14 18:42:18 +00:00
var should = require('should');
var Server = require('../../lib/server.js');
describe('Server', function() {
describe('toJSON()', function() {
it('should include title', function() {
var server = new Server(null, null, {title: 'test'});
server.toJSON().should.have.property('title', 'test');
});
});
});