2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-30 15:24:11 +03:00
Files
axios/test/specs/helpers/spread.spec.js
T
2015-03-18 17:12:51 -06:00

14 lines
280 B
JavaScript

var spread = require('../../../lib/helpers/spread');
describe('helpers::spread', function () {
it('should spread array to arguments', function () {
var value = 0;
spread(function (a, b) {
value = a * b;
})([5, 10]);
expect(value).toEqual(50);
});
});