Files

18 lines
563 B
TypeScript
Raw Permalink Normal View History

import ErrorScreen from '../../../../src/components/AppTemplates/PartialViews/ErrorScreen.vue'
import { defaultPlugins, mount } from '../../../../src/testing'
describe('The external app error screen component', () => {
test('displays an icon and a paragraph', () => {
const wrapper = mount(ErrorScreen, {
props: {
message: 'Error when loading the application'
},
global: {
stubs: {
OcIcon: true
},
plugins: [...defaultPlugins()]
}
})
expect(wrapper.html()).toMatchSnapshot()
})
})