chore(TypeScript): fix unit tests and coverage

This commit is contained in:
harttle
2019-02-17 20:46:33 +08:00
parent fc9ebdb90f
commit aa49b4f117
8 changed files with 43 additions and 19 deletions
+2 -2
View File
@@ -52,9 +52,9 @@ describe('util/promise', function () {
.then(() => expect(spy).to.not.have.been.called)
})
})
describe('.mapSeries()', function () {
describe('.mapSeries()', async function () {
it('should resolve when all resolved', async function () {
const result = P.mapSeries(
const result = await P.mapSeries(
['first', 'second', 'third'],
item => Promise.resolve(item)
)