arma-server-web-admin/test/lib/server.js
2021-07-10 16:16:18 +02:00

20 lines
568 B
JavaScript

require('should')
var Server = require('../../lib/server.js')
describe('Server', function () {
describe('generateId()', function () {
it('should include title', function () {
var server = new Server(null, null, null, { title: 'title.with.lot.of.dots' })
server.generateId().should.eql('title-with-lot-of-dots')
})
})
describe('toJSON()', function () {
it('should include title', function () {
var server = new Server(null, null, null, { title: 'test' })
server.toJSON().should.have.property('title', 'test')
})
})
})