chore: update src/**/*.case to use assert.compareArray wherever applicable

This commit is contained in:
rwaldron 2021-09-24 09:26:52 -04:00
parent 78554b2dac
commit d7414a8d8e
6 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -50,4 +50,4 @@ verifyProperty(c, y, {
configurable: true
});
assert(compareArray(x, ["a", "b", "c"]));
assert.compareArray(x, ["a", "b", "c"]);

View File

@ -50,4 +50,4 @@ verifyProperty(c, "y", {
configurable: true
});
assert(compareArray(x, ["a", "b", "c", "d"]));
assert.compareArray(x, ["a", "b", "c", "d"]);

View File

@ -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);

View File

@ -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);

View File

@ -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);