mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-18 00:25:07 +00:00
16 lines
357 B
JavaScript
16 lines
357 B
JavaScript
var GlossaryEntry = require('../glossaryEntry');
|
|
|
|
describe('GlossaryEntry', function() {
|
|
describe('getID', function() {
|
|
it('must return a normalized ID', function() {
|
|
var entry = new GlossaryEntry({
|
|
name: 'Hello World'
|
|
});
|
|
|
|
expect(entry.getID()).toBe('hello-world');
|
|
});
|
|
});
|
|
});
|
|
|
|
|