mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-30 17:27:44 +03:00
[extensions] Detect OS from WhatsApp user agent
This commit is contained in:
@@ -61,6 +61,12 @@ describe('Extensions', () => {
|
||||
major: '1',
|
||||
type: 'fetcher'
|
||||
});
|
||||
|
||||
const whatsapp = "WhatsApp/2.0 A";
|
||||
assert.deepEqual(new UAParser(whatsapp, Fetchers).getOS(), {
|
||||
name : 'Android',
|
||||
version : undefined
|
||||
});
|
||||
});
|
||||
|
||||
describe('Merge', () => {
|
||||
|
Reference in New Issue
Block a user