1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

Add one more test for Bowser.isUnsupportedBrowser

This commit is contained in:
Denis Demchenko 2017-09-25 16:48:45 +03:00
parent 9f8ad07aa4
commit 3ce77e9ed4

View File

@ -117,6 +117,11 @@ describe('Unsupported browser check', function() {
assert.equal(unsupported, false);
});
it('should NOT be passed by #isUnsupportedBrowser for IE10.6 and for IE10 miminal version specified in strict mode', function() {
var isUnsupported = browser.isUnsupportedBrowser({msie: "11"}, true, this.ie10_6);
assert.equal(isUnsupported, true);
});
it('should NOT be passed by #check for IE10.6 and for IE11 miminal version specified', function() {
var supported = browser.check({msie: "11"}, this.ie10_6);
assert.equal(supported, false);