diff --git a/lib/test.js b/lib/test.js index 87c9491..58fa87c 100644 --- a/lib/test.js +++ b/lib/test.js @@ -7,7 +7,7 @@ const { inspect } = require('util'); const { STATUS_CODES } = require('http'); const { Server } = require('https'); -const assert = require('assert'); +const { deepStrictEqual } = require('assert'); const { Request } = require('superagent'); class Test extends Request { @@ -186,7 +186,7 @@ class Test extends Request { // parsed if (typeof body === 'object' && !isRegexp) { try { - assert.deepStrictEqual(body, res.body); + deepStrictEqual(body, res.body); } catch (err) { const a = inspect(body); const b = inspect(res.body);