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'); }); }); });