assert: Rename match parameters slightly

This commit is contained in:
Jonatan Nilsson 2016-02-19 05:44:31 +00:00
parent e7415c4c96
commit ce3af99391

View file

@ -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) => {