diff --git a/packages/zone.js/test/extra/bluebird.spec.ts b/packages/zone.js/test/extra/bluebird.spec.ts index 8e8e5993ff..a7db2845ee 100644 --- a/packages/zone.js/test/extra/bluebird.spec.ts +++ b/packages/zone.js/test/extra/bluebird.spec.ts @@ -283,8 +283,8 @@ describe('bluebird promise', () => { BluebirdPromise .each( BluebirdPromise.map(arr, (item: number) => BluebirdPromise.resolve(item)), - (r: number[], idx: number) => { - expect(r[idx] === arr[idx]); + (r: number, idx: number) => { + expect(r).toBe(arr[idx]); expect(Zone.current.name).toEqual('bluebird'); }) .then((r: any) => { @@ -304,8 +304,8 @@ describe('bluebird promise', () => { BluebirdPromise .mapSeries( BluebirdPromise.map(arr, (item: number) => BluebirdPromise.resolve(item)), - (r: number[], idx: number) => { - expect(r[idx] === arr[idx]); + (r: number, idx: number) => { + expect(r).toBe(arr[idx]); expect(Zone.current.name).toEqual('bluebird'); }) .then((r: any) => {