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) => {
|
||||
let result = test.match(expect);
|
||||
assert.match = (value, test, message) => {
|
||||
let result = value.match(test);
|
||||
if (result) return;
|
||||
|
||||
fail(test, expect, message, 'match', assert.match);
|
||||
fail(value, test, message, 'match', assert.match);
|
||||
}
|
||||
|
||||
assert.isFulfilled = (promise, message) => {
|
||||
|
|
Loading…
Reference in a new issue