assert: Rename match parameters slightly
This commit is contained in:
parent
e7415c4c96
commit
ce3af99391
1 changed files with 3 additions and 3 deletions
|
@ -23,11 +23,11 @@ assert.notOk = (value, message) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
assert.match = (test, expect, message) => {
|
assert.match = (value, test, message) => {
|
||||||
let result = test.match(expect);
|
let result = value.match(test);
|
||||||
if (result) return;
|
if (result) return;
|
||||||
|
|
||||||
fail(test, expect, message, 'match', assert.match);
|
fail(value, test, message, 'match', assert.match);
|
||||||
}
|
}
|
||||||
|
|
||||||
assert.isFulfilled = (promise, message) => {
|
assert.isFulfilled = (promise, message) => {
|
||||||
|
|
Loading…
Reference in a new issue