Comments (3)
Isn't this on include in v1.0.0 it succeeds in my test.
from browser-ava.
we have only on simple test for it here.
Maybe your can add your passing? assertion and we can fix it
from browser-ava.
Here is my test, but I'm sure it isn't a KISS test-case ;)
function sleep(ms){
return new Promise((resolve)=>setTimeout(resolve,ms));
}
test('pingTracker give time elapsed', async t => {
await sleep(1); // in some test environnement this fix latency bug.
const mockedFunc = async (first,second)=>{await sleep(second);return first};
const firstParameter = 'finalResult';
const secondParameter = 11;
const toCall = [mockedFunc,firstParameter,secondParameter];
const timeout = 1000;
const result = await app.timeTrack(toCall,timeout);
t.is(result.result,firstParameter);
t.is(result.params[1],firstParameter);
t.regex(result.ms.toString(),/1[0-9]/);
});
from browser-ava.
Related Issues (16)
- Existant ava browser runner HOT 7
- Error: listen EADDRINUSE: address already in use :::8080 HOT 1
- FEAT: display test count (total and why not by file) HOT 3
- FEAT: Show failed test in red with their error message HOT 1
- FEAT: handle ava t.throws HOT 1
- FEAT: handle ava t.deepEqual HOT 1
- FEAT: handle ava async tests (including async throws) HOT 1
- FEAT: run test in a custom browser HOT 1
- Complete README.md to explain how to use it
- FEAT: watch mode
- do not try to send BigInt as json HOT 1
- add support for headless browser modifier HOT 1
- Regression between 1.1.0 and 1.2.0 (and up to 1.3.2) HOT 4
- dynamic import in test case results in syntax error HOT 1
- use resolve.exports module for in package resolving
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from browser-ava.