Skip to content

Commit

Permalink
destruct assert
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmywarting committed Jan 4, 2022
1 parent 03f0084 commit dc60d5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit dc60d5d

Please sign in to comment.