Skip to content

Commit 186efab

Browse files
author
Shane Osbourne
committed
add a unit-test for ordering
1 parent c8ef17c commit 186efab

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

unit-test/features.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { platformSupport } from '../src/features.js'
2+
3+
describe('Features definition', () => {
4+
fit('calls `webCompat` before `fingerPrintingScreenSize` https://app.asana.com/0/1177771139624306/1204944717262422/f', () => {
5+
// ensuring this order doesn't change, as it recently caused breakage
6+
expect(platformSupport.apple).toEqual([
7+
'webCompat',
8+
'runtimeChecks',
9+
'fingerprintingAudio',
10+
'fingerprintingBattery',
11+
'fingerprintingCanvas',
12+
'cookie',
13+
'googleRejected',
14+
'gpc',
15+
'fingerprintingHardware',
16+
'referrer',
17+
'fingerprintingScreenSize',
18+
'fingerprintingTemporaryStorage',
19+
'navigatorInterface',
20+
'elementHiding',
21+
'exceptionHandler'
22+
])
23+
})
24+
})

0 commit comments

Comments
 (0)