Skip to content

Commit f3c1ea3

Browse files
Add unit test for DrupalLibraryModule
1 parent 5da2679 commit f3c1ea3

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const DrupalLibraryModule = require('../lib/DrupalLibraryModule')
2+
3+
test('DrupalLibraryModule instantiates without error', async () => {
4+
await expect(() => new DrupalLibraryModule()).not.toThrow()
5+
})
6+
7+
test('DrupalLibraryModule generates correct identifier', async () => {
8+
const module = new DrupalLibraryModule('test'),
9+
expected = 'drupal test'
10+
11+
await expect(module.identifier()).toEqual(expected)
12+
await expect(module.readableIdentifier()).toEqual(expected)
13+
})

0 commit comments

Comments
 (0)