mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
23 lines
666 B
JavaScript
23 lines
666 B
JavaScript
describe('$ionicConfigProvider', function() {
|
|
|
|
it('should give default true', function() {
|
|
module('ionic', function($ionicConfigProvider) {
|
|
expect($ionicConfigProvider.prefetchTemplates()).toBe(true);
|
|
});
|
|
inject(function($ionicConfig) {
|
|
expect($ionicConfig.prefetchTemplates).toBe(true);
|
|
});
|
|
});
|
|
|
|
it('should allow setting', function() {
|
|
module('ionic', function($ionicConfigProvider) {
|
|
$ionicConfigProvider.prefetchTemplates(false);
|
|
expect($ionicConfigProvider.prefetchTemplates()).toBe(false);
|
|
});
|
|
inject(function($ionicConfig) {
|
|
expect($ionicConfig.prefetchTemplates).toBe(false);
|
|
});
|
|
});
|
|
|
|
});
|