Skip to content

Commit

Permalink
chore(#693): add test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Decipher committed Sep 2, 2024
1 parent bcf0646 commit 6e2cd96
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/blocks/test/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Default from '../src'

test('Default function', async () => {
expect(() => Default()).toThrow("DruxtBlocks Nuxt module must be installed as 'druxt-blocks/nuxt'")
})
5 changes: 5 additions & 0 deletions packages/breadcrumb/test/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Default from '../src'

test('Default function', async () => {
expect(() => Default()).toThrow("DruxtBreadcrumb Nuxt module must be installed as 'druxt-breadcrumb/nuxt'")
})
5 changes: 5 additions & 0 deletions packages/druxt/test/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Default from '../src'

test('Default function', async () => {
expect(() => Default()).toThrow("Druxt Nuxt module must be installed as 'druxt/nuxt'")
})
5 changes: 5 additions & 0 deletions packages/entity/test/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Default from '../src'

test('Default function', async () => {
expect(() => Default()).toThrow("DruxtEntity Nuxt module must be installed as 'druxt-entity/nuxt'")
})
5 changes: 5 additions & 0 deletions packages/menu/test/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Default from '../src'

test('Default function', async () => {
expect(() => Default()).toThrow("DruxtMenu Nuxt module must be installed as 'druxt-menu/nuxt'")
})
5 changes: 5 additions & 0 deletions packages/router/test/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Default from '../src'

test('Default function', async () => {
expect(() => Default()).toThrow("DruxtRouter Nuxt module must be installed as 'druxt-router/nuxt'")
})
5 changes: 5 additions & 0 deletions packages/schema/test/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Default from '../src'

test('Default function', async () => {
expect(() => Default()).toThrow("DruxtSchema Nuxt module must be installed as 'druxt-schema/nuxt'")
})
5 changes: 5 additions & 0 deletions packages/site/test/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Default from '../src'

test('Default function', async () => {
expect(() => Default()).toThrow("DruxtSite Nuxt module must be installed as 'druxt-site/nuxt'")
})
5 changes: 5 additions & 0 deletions packages/views/test/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Default from '../src'

test('Default function', async () => {
expect(() => Default()).toThrow("DruxtViews Nuxt module must be installed as 'druxt-views/nuxt'")
})

0 comments on commit 6e2cd96

Please sign in to comment.