mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-30 17:27:44 +03:00
Update formFactor
-> formFactors
, in accordance to the latest change in client hints spec
This commit is contained in:
@@ -463,18 +463,18 @@ describe('Map UA-CH headers', function () {
|
||||
});
|
||||
});
|
||||
|
||||
it('Can detect form-factor from client-hints', function () {
|
||||
it('Can detect form-factors from client-hints', function () {
|
||||
|
||||
const FFVR = {
|
||||
'sec-ch-ua-form-factor' : '"VR"'
|
||||
'sec-ch-ua-form-factors' : '"VR"'
|
||||
};
|
||||
|
||||
const FFEInk = {
|
||||
'sec-ch-ua-form-factor' : '"Tablet", "EInk"'
|
||||
'sec-ch-ua-form-factors' : '"Tablet", "EInk"'
|
||||
};
|
||||
|
||||
const FFUnknown = {
|
||||
'sec-ch-ua-form-factor' : '"Unknown"'
|
||||
'sec-ch-ua-form-factors' : '"Unknown"'
|
||||
};
|
||||
|
||||
UAParser(FFVR).withClientHints().then(function (ua) {
|
||||
|
@@ -40,7 +40,7 @@ test('read client hints data', async ({ page }) => {
|
||||
}
|
||||
],
|
||||
platform: 'New OS',
|
||||
formFactor: 'New Form Factor'
|
||||
formFactors: 'New Form Factor'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user