2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-14 18:42:33 +03:00

Moving stuff to helpers/

This commit is contained in:
mzabriskie
2014-09-22 11:12:24 -06:00
parent edb0c3ce24
commit 1b803fb233
14 changed files with 18 additions and 19 deletions
+31
View File
@@ -0,0 +1,31 @@
var transformData = require('../../../lib/helpers/transformData');
module.exports = {
testSingleFunction: function (test) {
var data;
data = transformData(data, null, function (data) {
data = 'foo';
return data;
});
test.equals(data, 'foo');
test.done();
},
testFunctionArray: function (test) {
var data = '';
data = transformData(data, null, [function (data) {
data += 'f';
return data;
}, function (data) {
data += 'o';
return data;
}, function (data) {
data += 'o';
return data;
}]);
test.equals(data, 'foo');
test.done();
}
};