You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Mobile/15E148 Safari/604.1',
69
+
platform: 'iPhone',
70
+
vendor: 'Apple Computer, Inc.'
71
+
})
72
+
73
+
expect(detector.OS).toEqual('iOS')
74
+
expect(detector.browser).toEqual('Safari')
75
+
expect(detector.version).toEqual(15.6)
76
+
})
77
+
78
+
it('reports Chrome on iOS',()=>{
79
+
constdetector=createDetector({
80
+
userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/104.0.5112.99 Mobile/15E148 Safari/604.1',
81
+
platform: 'iPhone',
82
+
vendor: 'Apple Computer, Inc.'
83
+
})
84
+
85
+
expect(detector.OS).toEqual('iOS')
86
+
expect(detector.browser).toEqual('Chrome')
87
+
expect(detector.version).toEqual(104)
88
+
})
89
+
90
+
it('reports Firefox on iOS',()=>{
91
+
constdetector=createDetector({
92
+
userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/103.1 Mobile/15E148 Safari/605.1.15',
0 commit comments