Files
gitbook/lib/models/__tests__/glossaryEntry.js
T
2016-04-22 22:21:34 +02:00

18 lines
382 B
JavaScript

jest.autoMockOff();
describe('GlossaryEntry', function() {
var GlossaryEntry = require('../glossaryEntry');
describe('getID', function() {
it('must return a normalized ID', function() {
var entry = new GlossaryEntry({
name: 'Hello World'
});
expect(entry.getID()).toBe('hello-world');
});
});
});