mirror of
https://github.com/tenrok/axios.git
synced 2026-05-27 14:47:43 +03:00
@@ -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();
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user