UNPKG

590 BPlain TextView Raw
1import chai = require('chai');
2import Promise = require('bluebird');
3import async = require('../src/async/index');
4import await = require('../src/await/index');
5var expect = chai.expect;
6
7
8describe('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});