build: update jasmine to 3.5 (#34625)
1. update jasmine to 3.5 2. update @types/jasmine to 3.5 3. update @types/jasminewd2 to 2.0.8 Also fix several cases, the new jasmine 3 will help to create test cases correctly, such as in the `jasmine 2.x` version, the following case will pass ``` expect(1 == 2); ``` But in jsamine 3, the case will need to be ``` expect(1 == 2).toBeTrue(); ``` PR Close #34625
This commit is contained in:

committed by
Kara Erickson

parent
db4a448439
commit
ef4736d052
@ -284,7 +284,11 @@ describe('bluebird promise', () => {
|
||||
.each(
|
||||
BluebirdPromise.map(arr, (item: number) => BluebirdPromise.resolve(item)),
|
||||
(r: number, idx: number) => {
|
||||
<<<<<<< HEAD
|
||||
expect(r).toBe(arr[idx]);
|
||||
=======
|
||||
expect(r === arr[idx]).toBeTrue();
|
||||
>>>>>>> 253023848d... build: update jasmine to 3.5
|
||||
expect(Zone.current.name).toEqual('bluebird');
|
||||
})
|
||||
.then((r: any) => {
|
||||
@ -305,7 +309,11 @@ describe('bluebird promise', () => {
|
||||
.mapSeries(
|
||||
BluebirdPromise.map(arr, (item: number) => BluebirdPromise.resolve(item)),
|
||||
(r: number, idx: number) => {
|
||||
<<<<<<< HEAD
|
||||
expect(r).toBe(arr[idx]);
|
||||
=======
|
||||
expect(r === arr[idx]).toBeTrue();
|
||||
>>>>>>> 253023848d... build: update jasmine to 3.5
|
||||
expect(Zone.current.name).toEqual('bluebird');
|
||||
})
|
||||
.then((r: any) => {
|
||||
|
@ -41,7 +41,7 @@ describe('crypto test', () => {
|
||||
done();
|
||||
return;
|
||||
}
|
||||
const zoneASpec: ZoneSpec = {
|
||||
const zoneASpec = {
|
||||
name: 'A',
|
||||
onScheduleTask: (delegate: ZoneDelegate, currentZone: Zone, targetZone: Zone, task: Task):
|
||||
Task => { return delegate.scheduleTask(targetZone, task); }
|
||||
|
Reference in New Issue
Block a user