mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2026-01-02 20:34:41 +03:00
Fix #718 - Extension param now accept multiple extensions
This commit is contained in:
@@ -126,6 +126,13 @@ describe('Extending Regex', function () {
|
||||
});
|
||||
let myUA2 = 'Mozilla/5.0 MyTab 14 Pro Max';
|
||||
assert.deepEqual(myParser2.setUA(myUA2).getDevice(), {vendor: "MyTab", model: "14 Pro Max", type: "tablet"});
|
||||
|
||||
let myParser3 = new UAParser([{
|
||||
browser: myOwnListOfBrowsers
|
||||
}, {
|
||||
device: myOwnListOfDevices
|
||||
}]);
|
||||
assert.deepEqual(myParser3.setUA(myUA2).getDevice(), {vendor: "MyTab", model: "14 Pro Max", type: "tablet"});
|
||||
});
|
||||
|
||||
describe('User-agent length', function () {
|
||||
|
||||
Reference in New Issue
Block a user