Skip to content

Commit

Permalink
chore: update src/**/*.case to use assert.compareArray wherever appli…
Browse files Browse the repository at this point in the history
…cable
  • Loading branch information
rwaldron committed Sep 24, 2021
1 parent 78554b2 commit d7414a8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/async-generators/yield-spread-arr-multiple.case
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ item.then(({ done, value }) => {
item = iter.next(value);

item.then(({ done, value }) => {
assert(compareArray(value, arr));
assert.compareArray(value, arr);
assert.sameValue(done, false);
}).then($DONE, $DONE);
}).catch($DONE);
2 changes: 1 addition & 1 deletion src/class-elements/redeclaration-symbol.case
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ verifyProperty(c, y, {
configurable: true
});

assert(compareArray(x, ["a", "b", "c"]));
assert.compareArray(x, ["a", "b", "c"]);
2 changes: 1 addition & 1 deletion src/class-elements/redeclaration.case
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ verifyProperty(c, "y", {
configurable: true
});

assert(compareArray(x, ["a", "b", "c", "d"]));
assert.compareArray(x, ["a", "b", "c", "d"]);
2 changes: 1 addition & 1 deletion src/dstr-assignment/obj-rest-order.case
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ Object.defineProperty(o, Symbol('foo'), { get: () => { calls.push("Symbol(foo)")
//- vals
o
//- body
assert(compareArray(calls, [1, 'z', 'a', "Symbol(foo)"]));
assert.compareArray(calls, [1, 'z', 'a', "Symbol(foo)"]);
assert.sameValue(Object.keys(rest).length, 3);
2 changes: 1 addition & 1 deletion src/generators/yield-spread-arr-multiple.case
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ iter.next(false);
item = iter.next(['a', 'b', 'c']);
item = iter.next(item.value);

assert(compareArray(item.value, arr));
assert.compareArray(item.value, arr);
assert.sameValue(item.done, false);
2 changes: 1 addition & 1 deletion src/spread/obj-spread-order.case
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ Object.defineProperty(o, Symbol('foo'), { get: () => { calls.push("Symbol(foo)")
//- params
obj
//- body
assert(compareArray(calls, [1, 'z', 'a', "Symbol(foo)"]));
assert.compareArray(calls, [1, 'z', 'a', "Symbol(foo)"]);
assert.sameValue(Object.keys(obj).length, 3);

0 comments on commit d7414a8

Please sign in to comment.