mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
another platform testing fix
This commit is contained in:
@@ -88,15 +88,11 @@ describe('Ionic Platform Service', function() {
|
||||
});
|
||||
|
||||
it('is Android', function() {
|
||||
ionic.Platform.ua = '';
|
||||
ionic.Platform.setPlatform('Android');
|
||||
expect(ionic.Platform.isAndroid()).toEqual(true);
|
||||
|
||||
ionic.Platform.setPlatform('android');
|
||||
expect(ionic.Platform.isAndroid()).toEqual(true);
|
||||
|
||||
ionic.Platform.setPlatform('ios');
|
||||
expect(ionic.Platform.isAndroid()).toEqual(false);
|
||||
});
|
||||
|
||||
it('is Cordova', function() {
|
||||
|
||||
Reference in New Issue
Block a user