mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
test(gesture-controller): fix tests
This commit is contained in:
@ -150,7 +150,7 @@ describe('gesture controller', () => {
|
||||
expect(g1.start()).toEqual(true);
|
||||
expect(g2.start()).toEqual(true);
|
||||
g3.destroy();
|
||||
expect(g3['ctrl']).toBeNull();
|
||||
expect(g3['ctrl']).toBeUndefined();
|
||||
|
||||
const expected3 = new Map();
|
||||
expected3.set(1, 0);
|
||||
@ -295,7 +295,7 @@ describe('gesture controller', () => {
|
||||
expect(c.isDisabled('event5')).toBeTruthy();
|
||||
|
||||
b2.destroy();
|
||||
expect(b2['ctrl']).toBeNull();
|
||||
expect(b2['ctrl']).toBeUndefined();
|
||||
|
||||
expect(c.isDisabled('event1')).toBeFalsy();
|
||||
expect(c.isDisabled('event2')).toBeFalsy();
|
||||
|
Reference in New Issue
Block a user