From 662de165ca345153baf89036ffad59b7f0f7dce2 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Mon, 26 Apr 2021 00:35:54 +0200 Subject: [PATCH] coverage notifications.spec.js --- webapp/pages/admin/notifications.spec.js | 35 ++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 webapp/pages/admin/notifications.spec.js diff --git a/webapp/pages/admin/notifications.spec.js b/webapp/pages/admin/notifications.spec.js new file mode 100644 index 000000000..8c2382ccf --- /dev/null +++ b/webapp/pages/admin/notifications.spec.js @@ -0,0 +1,35 @@ +import { mount } from '@vue/test-utils' +import Notifications from './notifications.vue' + +const localVue = global.localVue + +describe('notifications.vue', () => { + let wrapper + let mocks + + beforeEach(() => { + mocks = { + $t: jest.fn(), + $apollo: { + loading: false, + } + } + }) + + describe('mount', () => { + const Wrapper = () => { + return mount(Notifications, { + mocks, + localVue, + }) + } + + beforeEach(() => { + wrapper = Wrapper() + }) + + it('renders', () => { + expect(wrapper.is('.base-card')).toBe(true) + }) + }) +})