summaryrefslogtreecommitdiffstats
path: root/packages/gitbook/src/models/__tests__/glossaryEntry.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook/src/models/__tests__/glossaryEntry.js')
-rw-r--r--packages/gitbook/src/models/__tests__/glossaryEntry.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/gitbook/src/models/__tests__/glossaryEntry.js b/packages/gitbook/src/models/__tests__/glossaryEntry.js
new file mode 100644
index 0000000..66ddab4
--- /dev/null
+++ b/packages/gitbook/src/models/__tests__/glossaryEntry.js
@@ -0,0 +1,14 @@
+const GlossaryEntry = require('../glossaryEntry');
+
+describe('GlossaryEntry', function() {
+ describe('getID', function() {
+ it('must return a normalized ID', function() {
+ const entry = new GlossaryEntry({
+ name: 'Hello World'
+ });
+
+ expect(entry.getID()).toBe('hello-world');
+ });
+ });
+});
+