Skip to content

Commit

Permalink
break test on pieces in set directory
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxNB committed Apr 16, 2020
1 parent 38ecfce commit df6d3c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
15 changes: 2 additions & 13 deletions tests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,9 @@ const tape = require('tape');
const puppeteer = require('puppeteer');

test('e2e test',[
page_loading
require('./set/page_loading')
]);



async function page_loading(t,p){
await p.goto(`http://localhost:5000`);
t.equal((await p.title()),'Tinro Test Page','Page is loaded');
}


function test(name,cbs){
tape(name, async t => {

Expand All @@ -26,7 +18,4 @@ function test(name,cbs){
t.end();
await browser.close();
})
}



}
6 changes: 6 additions & 0 deletions tests/set/page_loading.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = async function (t,p) {

await p.goto(`http://localhost:5000`);
t.equal((await p.title()),'Tinro Test Page','Page is loaded');

}

0 comments on commit df6d3c2

Please sign in to comment.