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