Neues Initialrelease mit IonicMaterial
This commit is contained in:
23
www/lib/ngCordova/test/mocks/statusbar.spec.js
Normal file
23
www/lib/ngCordova/test/mocks/statusbar.spec.js
Normal file
@@ -0,0 +1,23 @@
|
||||
describe('ngCordovaMocks', function() {
|
||||
beforeEach(function() {
|
||||
module('ngCordovaMocks');
|
||||
});
|
||||
|
||||
describe('cordovaStatusbar', function () {
|
||||
var $cordovaStatusbar = null;
|
||||
|
||||
beforeEach(inject(function (_$cordovaStatusbar_) {
|
||||
$cordovaStatusbar = _$cordovaStatusbar_;
|
||||
}));
|
||||
|
||||
it('should hide the status bar', function() {
|
||||
$cordovaStatusbar.hide();
|
||||
expect($cordovaStatusbar.isVisible()).toBe(false);
|
||||
});
|
||||
|
||||
it('should show the status bar', function() {
|
||||
$cordovaStatusbar.show();
|
||||
expect($cordovaStatusbar.isVisible()).toBe(true);
|
||||
});
|
||||
});
|
||||
})
|
||||
Reference in New Issue
Block a user