Skip to content

Commit

Permalink
figure out why test failed
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhauhau committed Mar 27, 2020
1 parent 571011b commit b73034f
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions test/custom-elements/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,24 @@ describe('custom-elements', function() {
}

before(async () => {
svelte = loadSvelte();
server = await create_server();
browser = await puppeteer.launch();
try {
svelte = loadSvelte();
server = await create_server();
browser = await puppeteer.launch();
console.log('Success!');
} catch (error) {
console.log('Error', error);
}
});

after(async () => {
server.close();
await browser.close();
try {
server.close();
await browser.close();
console.log('Success!');
} catch (error) {
console.log('Error', error);
}
});

fs.readdirSync(`${__dirname}/samples`).forEach(dir => {
Expand Down

0 comments on commit b73034f

Please sign in to comment.