mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-30 09:24:26 +03:00
10
test/test.js
10
test/test.js
@@ -82,7 +82,7 @@ describe('Returns', function () {
|
||||
assert.deepEqual(new UAParser('').getResult(),
|
||||
{
|
||||
ua : '',
|
||||
ua_ch : { architecture: undefined, bitness: undefined, brands: undefined, mobile: false, model: undefined, platform: undefined, platformVersion: undefined },
|
||||
ua_ch : { architecture: undefined, bitness: undefined, brands: undefined, fullVersionList: undefined, mobile: false, model: undefined, platform: undefined, platformVersion: undefined },
|
||||
browser: { name: undefined, version: undefined, major: undefined },
|
||||
cpu: { architecture: undefined },
|
||||
device: { vendor: undefined, model: undefined, type: undefined },
|
||||
@@ -400,4 +400,12 @@ describe('Map UA-CH headers', function () {
|
||||
assert.strictEqual(os.name, "Linux");
|
||||
assert.strictEqual(os.version, "x86_64");
|
||||
});
|
||||
});
|
||||
|
||||
describe('Map UA-CH JS', function () {
|
||||
it('Can read client hints from browser', async function () {
|
||||
let ua = new UAParser();
|
||||
let browser = await ua.getBrowser().withClientHints();
|
||||
// TODO : create tests
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user