Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
LuXDAmore committed Sep 11, 2020
1 parent 14bbee7 commit 8ec6a36
Showing 1 changed file with 34 additions and 31 deletions.
65 changes: 34 additions & 31 deletions test/module.test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Test utils
import {
setup,
get,
Expand All @@ -10,53 +11,55 @@ const BASE_URL = '/';

config.dev = false;
config.router.base = BASE_URL;
config.server = {};

// Tests
describe(
'module',
() => {

let nuxt;
let nuxt;

beforeAll(
async() => {
beforeAll(
async() => {

(
{ nuxt } = (
await setup(
config
(
{ nuxt } = (
await setup(
config
)
)
)
);
);

},
60000
);
},
60000
);

afterAll(
async() => {
afterAll(
async() => {

await nuxt.close();
await nuxt.close();

}
);
},
60000
);

test(
'render',
async() => {
test(
'render',
async() => {

const html = await get(
BASE_URL
);
const html = await get(
BASE_URL
);

expect(
html
).toContain(
'Generative'
);
expect(
html
).toContain(
'Generative Art'
);

}
);
},
60000
);

}
);

0 comments on commit 8ec6a36

Please sign in to comment.