-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d8f82d4
commit f74a30c
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import About from '@/fragments/about/About.vue' | ||
import I18nBuilder from '@/i18n/i18n-builder' | ||
import { mount } from '@vue/test-utils' | ||
import AppLoader from '@/app-loader' | ||
import store from '@/store/store' | ||
|
||
// Solves the 'RegeneratorRuntime is not defined' issue according to | ||
// https://stackoverflow.com/questions/28976748/regeneratorruntime-is-not-defined | ||
import '@babel/polyfill' | ||
|
||
describe('About', () => { | ||
var i18n = I18nBuilder.build() | ||
it('should render about page', async (done) => { | ||
await new AppLoader().fetchApiInitialData() | ||
const wrapper = mount(About, {i18n: i18n, store: store }) | ||
|
||
expect(wrapper.contains('.about-container')).toBe(true) | ||
expect(wrapper.findComponent(About).exists()).toBe(true) | ||
done() | ||
}) | ||
}) |