-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make skip and only also a suite
- Loading branch information
1 parent
31d3ce2
commit d7a5c41
Showing
4 changed files
with
49 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { suite, assert, test as _test } from '../../src/taps/index.js' | ||
import delay from 'delay' | ||
|
||
let test = suite('test3').skip | ||
|
||
test.before(() => { | ||
console.log('before') | ||
}) | ||
|
||
test('test assert', () => { | ||
assert.match('foo', /foo/) | ||
assert.doesNotMatch('fiii', /foo/) | ||
assert.equal(3, 32) | ||
|
||
assert.type('ssss', 'string') | ||
assert.instance(new Date(), Date) | ||
}) | ||
|
||
test( | ||
'test timeout', | ||
async () => { | ||
await delay(200) | ||
assert.type(() => {}, 'function') | ||
}, | ||
{ timeout: 100 } | ||
) |
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