-
Notifications
You must be signed in to change notification settings - Fork 93
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
Laurent RENARD
authored and
Laurent RENARD
committed
Oct 24, 2019
1 parent
8f64199
commit c53a2e9
Showing
28 changed files
with
56 additions
and
55 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 |
---|---|---|
|
@@ -41,3 +41,4 @@ test/dist | |
benchmarks | ||
dist | ||
src/*.js | ||
sample.html |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
|
||
const test = require('ava'); | ||
for (let i = 0; i < 10; i++) { | ||
for (let i = 0; i < 8; i++) { | ||
test('test ' + i, async function (assert) { | ||
await new Promise(resolve => { | ||
setTimeout(()=>resolve(),100); | ||
setTimeout(()=>resolve(),50); | ||
}); | ||
assert.truthy(Math.random() * 100 > 5); | ||
assert.truthy(Math.random() * 100 > 3); | ||
}); | ||
} |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
|
||
describe('add', function () { | ||
for (let i = 0; i < 10; i++) { | ||
for (let i = 0; i < 8; i++) { | ||
it('should test',async function () { | ||
await new Promise(resolve => { | ||
setTimeout(()=>resolve(),100); | ||
setTimeout(()=>resolve(),50); | ||
}); | ||
expect(Math.random() * 100 > 5).toBeTruthy(); | ||
expect(Math.random() * 100 > 3).toBeTruthy(); | ||
}); | ||
} | ||
}); |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
|
||
const assert = require('assert'); | ||
describe('test file', function() { | ||
for(let i=0; i < 10;i++){ | ||
for(let i=0; i < 8;i++){ | ||
it('test ' + i, function(done) { | ||
setTimeout(()=>{ | ||
assert.ok(Math.random() * 100 > 5); | ||
assert.ok(Math.random() * 100 > 3); | ||
done(); | ||
},100); | ||
},50); | ||
}); | ||
} | ||
}); |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
|
||
const test = require('tape'); | ||
for (let i = 0; i < 10; i++) { | ||
for (let i = 0; i < 8; i++) { | ||
test('test ' + i, function (assert) { | ||
setTimeout(()=>{ | ||
assert.ok(Math.random() * 100 > 5); | ||
assert.ok(Math.random() * 100 > 3); | ||
assert.end(); | ||
},100); | ||
},50); | ||
}); | ||
} |
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
|
||
const {test} = require('../../dist/bundle/index.js'); | ||
const path = require('path'); | ||
const fs = require('fs'); | ||
const tests = fs.readdirSync(path.join(process.cwd(),'./benchmarks/zora/test')); | ||
for (let f of tests){ | ||
require(path.join(process.cwd(),'./benchmarks/zora/test/',f)); | ||
test(f,require(path.join(process.cwd(),'./benchmarks/zora/test/',f))); | ||
} |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
|
||
const {test} = require('../../../dist/bundle/index.js'); | ||
for (let i = 0; i < 10; i++) { | ||
module.exports =(({test}) => { | ||
for (let i = 0; i < 8; i++) { | ||
test('test ' + i, async function (assert) { | ||
await new Promise(resolve => { | ||
setTimeout(()=>resolve(),100); | ||
setTimeout(()=>resolve(),50); | ||
}); | ||
assert.ok(Math.random() * 100 > 5); | ||
assert.ok(Math.random() * 100 > 3); | ||
}); | ||
} | ||
}}); |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import {ok ,eq} from '../../../src/index.js'; | ||
import {eq, ok} from '../../../dist/bundle/module.js'; | ||
|
||
ok(true, 'true is truthy'); | ||
eq([],[2],'unhappy arrays'); | ||
eq([], [2], 'unhappy arrays'); | ||
eq({foo: 'bar'}, {foo: 'bar'}, 'foo bar'); |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import {ok, eq} from '../../../src/index.js'; | ||
import {eq, ok} from '../../../dist/bundle/module.js'; | ||
|
||
ok(true, 'true is truthy'); | ||
eq({foo: 'bar'}, {foo: 'bar'}, 'foo bar'); |
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
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import {test} from '../../../src/index.js'; | ||
import {test} from '../../../dist/bundle/module.js'; | ||
|
||
test('symbol tester 1', t => { | ||
t.equal(Symbol('foo'),Symbol('bar'),'Symbol foo should equal Symbol bar'); | ||
t.equal({symbol: Symbol('foo')},{symbol:Symbol('bar')}, 'Property Symbol foo should equal Symbol bar') | ||
t.equal(Symbol('foo'), Symbol('bar'), 'Symbol foo should equal Symbol bar'); | ||
t.equal({symbol: Symbol('foo')}, {symbol: Symbol('bar')}, 'Property Symbol foo should equal Symbol bar'); | ||
}); |