From 6e2cd96c0333d52cef95b69d0396bc3dfc213947 Mon Sep 17 00:00:00 2001 From: Stuart Clark Date: Mon, 2 Sep 2024 14:27:14 +1000 Subject: [PATCH] chore(#693): add test coverage --- packages/blocks/test/index.test.js | 5 +++++ packages/breadcrumb/test/index.test.js | 5 +++++ packages/druxt/test/index.test.js | 5 +++++ packages/entity/test/index.test.js | 5 +++++ packages/menu/test/index.test.js | 5 +++++ packages/router/test/index.test.js | 5 +++++ packages/schema/test/index.test.js | 5 +++++ packages/site/test/index.test.js | 5 +++++ packages/views/test/index.test.js | 5 +++++ 9 files changed, 45 insertions(+) create mode 100644 packages/blocks/test/index.test.js create mode 100644 packages/breadcrumb/test/index.test.js create mode 100644 packages/druxt/test/index.test.js create mode 100644 packages/entity/test/index.test.js create mode 100644 packages/menu/test/index.test.js create mode 100644 packages/router/test/index.test.js create mode 100644 packages/schema/test/index.test.js create mode 100644 packages/site/test/index.test.js create mode 100644 packages/views/test/index.test.js diff --git a/packages/blocks/test/index.test.js b/packages/blocks/test/index.test.js new file mode 100644 index 00000000..34be5884 --- /dev/null +++ b/packages/blocks/test/index.test.js @@ -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'") +}) diff --git a/packages/breadcrumb/test/index.test.js b/packages/breadcrumb/test/index.test.js new file mode 100644 index 00000000..401b76d0 --- /dev/null +++ b/packages/breadcrumb/test/index.test.js @@ -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'") +}) diff --git a/packages/druxt/test/index.test.js b/packages/druxt/test/index.test.js new file mode 100644 index 00000000..e063dbd7 --- /dev/null +++ b/packages/druxt/test/index.test.js @@ -0,0 +1,5 @@ +import Default from '../src' + +test('Default function', async () => { + expect(() => Default()).toThrow("Druxt Nuxt module must be installed as 'druxt/nuxt'") +}) diff --git a/packages/entity/test/index.test.js b/packages/entity/test/index.test.js new file mode 100644 index 00000000..5bdb6062 --- /dev/null +++ b/packages/entity/test/index.test.js @@ -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'") +}) diff --git a/packages/menu/test/index.test.js b/packages/menu/test/index.test.js new file mode 100644 index 00000000..6fc0f4bf --- /dev/null +++ b/packages/menu/test/index.test.js @@ -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'") +}) diff --git a/packages/router/test/index.test.js b/packages/router/test/index.test.js new file mode 100644 index 00000000..ca05fd4a --- /dev/null +++ b/packages/router/test/index.test.js @@ -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'") +}) diff --git a/packages/schema/test/index.test.js b/packages/schema/test/index.test.js new file mode 100644 index 00000000..7503e498 --- /dev/null +++ b/packages/schema/test/index.test.js @@ -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'") +}) diff --git a/packages/site/test/index.test.js b/packages/site/test/index.test.js new file mode 100644 index 00000000..49a69213 --- /dev/null +++ b/packages/site/test/index.test.js @@ -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'") +}) diff --git a/packages/views/test/index.test.js b/packages/views/test/index.test.js new file mode 100644 index 00000000..a48fb3b0 --- /dev/null +++ b/packages/views/test/index.test.js @@ -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'") +})