1 | var chai = require('chai');
|
2 | var async = require('../src/async/index');
|
3 | var await = require('../src/await/index');
|
4 | var expect = chai.expect;
|
5 | describe('Fixed issues', function () {
|
6 | it('#44', async.cps(function () {
|
7 | var test = async(function (a, b, c, d, e, f, g, h, i) {
|
8 | return [a, b, c, d, e, f, g, h, i];
|
9 | });
|
10 | var expected = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i'];
|
11 | var actual = await(test.apply(null, expected));
|
12 | expect(actual).to.deep.equal(expected);
|
13 | }));
|
14 | });
|
15 |
|
\ | No newline at end of file |