Skip to content

Commit 00233e2

Browse files
committed
Fix tests rejects -> throws
1 parent 835a9ba commit 00233e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/stringify-chunked.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ describe('stringifyChunked()', () => {
183183
const circularRef = {};
184184
circularRef.a = circularRef;
185185

186-
assert.rejects(
186+
assert.throws(
187187
createStringifyTestFn(circularRef, ''),
188188
(err) => {
189189
assert.strictEqual(err.message, 'Converting circular structure to JSON');
@@ -196,7 +196,7 @@ describe('stringifyChunked()', () => {
196196
const circularRef = [];
197197
circularRef.push({ a: circularRef });
198198

199-
assert.rejects(
199+
assert.throws(
200200
createStringifyTestFn(circularRef, ''),
201201
(err) => {
202202
assert.strictEqual(err.message, 'Converting circular structure to JSON');
@@ -209,7 +209,7 @@ describe('stringifyChunked()', () => {
209209
const circularRef = {};
210210
circularRef.a = [circularRef];
211211

212-
assert.rejects(
212+
assert.throws(
213213
createStringifyTestFn(circularRef, ''),
214214
(err) => {
215215
assert.strictEqual(err.message, 'Converting circular structure to JSON');
@@ -222,7 +222,7 @@ describe('stringifyChunked()', () => {
222222
const circularRef = [];
223223
circularRef.push(circularRef);
224224

225-
assert.rejects(
225+
assert.throws(
226226
createStringifyTestFn(circularRef, ''),
227227
(err) => {
228228
assert.strictEqual(err.message, 'Converting circular structure to JSON');

0 commit comments

Comments
 (0)