We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dafbd3 commit 1ecfec8Copy full SHA for 1ecfec8
1 file changed
src/greet.test.ts
@@ -1,13 +1,9 @@
1
-import assert from 'node:assert'
2
-import {
3
- describe,
4
- it
5
-} from 'node:test'
+import { describe, it, type TestContext } from 'node:test'
6
import { greet } from './greet.js'
7
8
-describe('greet', async () => {
9
- it('returns greeting', () => {
+describe('greet', () => {
+ it('returns greeting', (t: TestContext) => {
10
const actual = greet('World')
11
- assert.strictEqual(actual, 'Hello World')
+ t.assert.strictEqual(actual, 'Hello World')
12
})
13
0 commit comments