platform test fix

This commit is contained in:
Adam Bradley
2014-02-24 14:44:59 -06:00
parent 1028946616
commit b051fa7c9f
2 changed files with 2 additions and 1 deletions

View File

@@ -88,6 +88,7 @@ describe('Ionic Platform Service', function() {
});
it('is Android', function() {
ionic.Platform.ua = '';
ionic.Platform.setPlatform('Android');
expect(ionic.Platform.isAndroid()).toEqual(true);

View File

@@ -149,7 +149,7 @@
// exact match
var pName = this.platform();
if(pName) {
return pName.toLowerCase() === type;
return pName === type.toLowerCase();
}
// A quick hack for to check userAgent