Skip to content

Commit 0001439

Browse files
committed
Fix order of expected and actual values in assertions
1 parent ce80bc3 commit 0001439

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ var assert = require('assert'),
1313
Time = new Date(1307472705067); // Tue, 07 Jun 2011 18:51:45 GMT
1414

1515
assert.fn = function(value, msg) {
16-
assert.equal('function', typeof value, msg);
16+
assert.equal(typeof value, 'function', msg);
1717
};
1818

1919
function assertFormat(time, format, expected, name, strftime) {
2020
var actual = strftime(format, time);
21-
assert.equal(expected, actual, name + '("' + format + '", ' + time + ') is ' + JSON.stringify(actual) + ', expected ' + JSON.stringify(expected));
21+
assert.equal(actual, expected, name + '("' + format + '", ' + time + ') is ' + JSON.stringify(actual) + ', expected ' + JSON.stringify(expected));
2222
}
2323

2424
assert.format = function(format, expected, expectedUTC, time) {

0 commit comments

Comments
 (0)