Commit fa1474e0 authored by Robert Knight's avatar Robert Knight

Correct order of actual/expected arguments to `assert.equal`

parent f6f0003f
......@@ -29,7 +29,7 @@ const rejects = async (promiseResult, errorMessage) => {
if (errorMessage instanceof RegExp) {
assert.isTrue(errorMessage.test(e.message));
} else {
assert.equal(errorMessage, e.message);
assert.equal(e.message, errorMessage);
}
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment