mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
18 lines
360 B
JavaScript
18 lines
360 B
JavaScript
describe('Ionic Modal', function() {
|
|
var modal, q;
|
|
|
|
beforeEach(module('ionic.ui.modal'));
|
|
|
|
beforeEach(inject(function(Modal, $q) {
|
|
q = $q;
|
|
modal = Modal;
|
|
}));
|
|
|
|
iit('Should show', function() {
|
|
var template = '<div class="modal"></div>';
|
|
var deferred = q.defer();
|
|
modal.fromTemplate(template);
|
|
deferred.resolve(true);
|
|
});
|
|
});
|