From b4dcf4f59c749deee6d47c4b87ad45d37183624b Mon Sep 17 00:00:00 2001 From: Aras Abbasi Date: Sat, 28 Jun 2025 01:18:17 +0200 Subject: [PATCH] test: use assert and not testcontext in issue-2283.js --- test/issue-2283.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/issue-2283.js b/test/issue-2283.js index b22b7b23755..848db8741f2 100644 --- a/test/issue-2283.js +++ b/test/issue-2283.js @@ -1,6 +1,7 @@ 'use strict' const { describe, test } = require('node:test') +const assert = require('node:assert') const { FormData, Response } = require('..') describe('https://github.com/nodejs/undici/issues/2283', () => { @@ -13,11 +14,11 @@ describe('https://github.com/nodejs/undici/issues/2283', () => { const body = await res.clone().text() // Just making sure that it contains ;charset=utf-8 - t.assert.ok(body.includes('text/plain;charset=utf-8')) + assert.ok(body.includes('text/plain;charset=utf-8')) const formData = await new Response(fd).formData() // returns just 'text/plain' - t.assert.ok(formData.get('x').type === 'text/plain;charset=utf-8') + assert.ok(formData.get('x').type === 'text/plain;charset=utf-8') }) })