2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-27 14:47:43 +03:00

Fixing issues with strict mode

closes #45
This commit is contained in:
mzabriskie
2015-03-10 14:28:43 -06:00
parent ace6a04671
commit 6d03e0bd4e
2 changed files with 18 additions and 5 deletions
+14 -1
View File
@@ -12,6 +12,19 @@ module.exports = {
test.done();
},
testArguments: function (test) {
var sum = 0;
(function () {
forEach(arguments, function (val) {
sum += val;
});
})(1, 2, 3, 4, 5);
test.equal(sum, 15);
test.done();
},
testObject: function (test) {
var keys = '';
var vals = 0;
@@ -52,4 +65,4 @@ module.exports = {
test.equals(count, 1);
test.done();
}
};
};