Skip to content

Commit 973a1ba

Browse files
authored
chore: se testcontext for test:infra (#4579)
1 parent cac98ab commit 973a1ba

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
'use strict'
22

33
const { test } = require('node:test')
4-
const assert = require('node:assert')
54

65
const { collectASequenceOfCodePoints } = require('../../lib/web/infra')
76

8-
test('https://infra.spec.whatwg.org/#collect-a-sequence-of-code-points', () => {
7+
test('https://infra.spec.whatwg.org/#collect-a-sequence-of-code-points', (t) => {
98
const input = 'text/plain;base64,'
109
const position = { position: 0 }
1110
const result = collectASequenceOfCodePoints(
@@ -14,6 +13,6 @@ test('https://infra.spec.whatwg.org/#collect-a-sequence-of-code-points', () => {
1413
position
1514
)
1615

17-
assert.strictEqual(result, 'text/plain')
18-
assert.strictEqual(position.position, input.indexOf(';'))
16+
t.assert.strictEqual(result, 'text/plain')
17+
t.assert.strictEqual(position.position, input.indexOf(';'))
1918
})

0 commit comments

Comments
 (0)