1 | import chai = require('chai');
|
2 | import Promise = require('bluebird');
|
3 | import async = require('../src/async/index');
|
4 | import await = require('../src/await/index');
|
5 | var expect = chai.expect;
|
6 |
|
7 |
|
8 | describe('Fixed issues', () => {
|
9 |
|
10 | it('#44', async.cps (() => {
|
11 |
|
12 | var test = async (function(a, b, c, d, e, f, g, h, i) {
|
13 | return [a, b, c, d, e, f, g, h, i];
|
14 | });
|
15 |
|
16 | let expected = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i'];
|
17 | let actual = await (test.apply(null, expected));
|
18 | expect(actual).to.deep.equal(expected);
|
19 | }));
|
20 | });
|