mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-21 01:53:26 +00:00
18 lines
382 B
JavaScript
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');
|
|
});
|
|
});
|
|
});
|
|
|
|
|