summaryrefslogtreecommitdiffstats
path: root/lib/models/__tests__/glossaryEntry.js
blob: 833115d59d6d91b9b85efec2dfa3fd9c40d65bbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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');
        });
    });
});