We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5da2679 commit f3c1ea3Copy full SHA for f3c1ea3
1 file changed
test/drupal-library-module-unit.test.js
@@ -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