mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2026-01-02 04:14:41 +03:00
[helpers] split helpers into 2 new packages: user-agent-helpers & client-hints-helpers
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
const { isFrozenUA, unfreezeUA, UACHParser } = require('@ua-parser-js/helpers');
|
||||
const { isFrozenUA, unfreezeUA } = require('@ua-parser-js/user-agent-helpers');
|
||||
const { UACHParser } = require('@ua-parser-js/client-hints-helpers');
|
||||
const assert = require('assert');
|
||||
|
||||
describe('isFrozenUA()', () => {
|
||||
@@ -54,7 +55,7 @@ describe('unfreezeUA()', () => {
|
||||
});
|
||||
|
||||
describe('UACHParser()', () => {
|
||||
it('parse client hints HTTP headers (sec-ch-ua) into a JavaScript object', () => {
|
||||
it('parse client hints HTTP headers (sec-ch-ua) into a client hints-like JavaScript object', () => {
|
||||
assert.deepEqual(UACHParser(headers), {
|
||||
"architecture": "arm",
|
||||
"bitness": "64",
|
||||
|
||||
Reference in New Issue
Block a user