mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
test(modal): fix broken unit tests
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
import { mockApp, mockConfig, mockDeepLinker } from '../../../util/mock-providers';
|
||||
import { Component } from '@angular/core';
|
||||
import { ModalController } from '../modal-controller';
|
||||
import { ModalCmp } from '../modal-component';
|
||||
|
||||
describe('Modal', () => {
|
||||
|
||||
@ -10,7 +9,7 @@ describe('Modal', () => {
|
||||
it('should have the correct properties on modal view controller proxy instance', () => {
|
||||
let modalCtrl = new ModalController(mockApp(), mockConfig(), mockDeepLinker());
|
||||
let modalViewControllerProxy = modalCtrl.create(ComponentToPresent);
|
||||
expect(modalViewControllerProxy._component).toEqual(ModalCmp);
|
||||
expect(modalViewControllerProxy._component).toEqual(ComponentToPresent);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user