Fix assert
parent
0a3d08244a
commit
8b1a637b3c
|
@ -5,7 +5,7 @@ const test = metaltest('Metaltest')
|
||||||
export { test }
|
export { test }
|
||||||
|
|
||||||
test('success', () => new Promise((s, f) => setTimeout(s, 500)))
|
test('success', () => new Promise((s, f) => setTimeout(s, 500)))
|
||||||
test('not equal', () => assert.notEqual({ a: 1 }, { a: 2 }))
|
test('not equal', () => assert.notDeepEqual({ a: 1 }, { a: 2 }))
|
||||||
test('fail with the message', () => new Promise((s, f) => setTimeout(s, 500)))
|
test('fail with the message', () => new Promise((s, f) => setTimeout(s, 500)))
|
||||||
test('throw', () => {
|
test('throw', () => {
|
||||||
return assert.rejects(async () => {
|
return assert.rejects(async () => {
|
||||||
|
|
Loading…
Reference in New Issue