Skip to content

Commit

Permalink
fix issue #5 (first check stronger tablet rules, then phone)
Browse files Browse the repository at this point in the history
  • Loading branch information
hgoebl committed Jun 5, 2014
1 parent 398ab6e commit 1e9e57c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/spec/MobileDetectSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ describe("Fixing issues", function () {
expect(aut.isPhoneSized()).toBeFalsy();
expect(aut.match(/xbox/i)).toBeFalsy();
});
it("should fix issue #5", function () {
var aut = new MobileDetect('Mozilla/5.0 (Linux; Android 4.4.2; en-us; SAMSUNG SM-T530NU Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/1.5 Chrome/28.0.1500.94 Safari/537.36', -1);
expect(aut).toBePhone(false);
expect(aut).toBeTablet(true);
expect(aut).toBeMobile(true);
});
});

describe("Feeding w/ ualist", function () {
Expand Down

0 comments on commit 1e9e57c

Please sign in to comment.