@@ -75,31 +75,31 @@ describe('helper', () => {
75
75
'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; ' +
76
76
'.NET CLR 2.0.50727; .NET4.0C; .NET4.0E)'
77
77
)
78
- . to . be . equal ( 'IE 7.0.0 (Windows Vista 0 .0.0)' )
78
+ . to . be . equal ( 'IE 7.0.0 (Windows Vista.0.0)' )
79
79
} )
80
80
81
81
it ( 'should parse IE8' , ( ) => {
82
82
expecting (
83
83
'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; ' +
84
84
'SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; InfoPath.3)"'
85
85
)
86
- . to . be . equal ( 'IE 8.0.0 (Windows 7 0 .0.0)' )
86
+ . to . be . equal ( 'IE 8.0.0 (Windows 7.0.0)' )
87
87
} )
88
88
89
89
it ( 'should parse IE9' , ( ) => {
90
90
expecting (
91
91
'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0; ' +
92
92
'.NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)'
93
93
)
94
- . to . be . equal ( 'IE 9.0.0 (Windows 7 0 .0.0)' )
94
+ . to . be . equal ( 'IE 9.0.0 (Windows 7.0.0)' )
95
95
} )
96
96
97
97
it ( 'should parse IE10' , ( ) => {
98
98
expecting (
99
99
'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0; ' +
100
100
'.NET4.0E; .NET4.0C)'
101
101
)
102
- . to . be . equal ( 'IE 10.0.0 (Windows 8 0 .0.0)' )
102
+ . to . be . equal ( 'IE 10.0.0 (Windows 8.0.0)' )
103
103
} )
104
104
105
105
it ( 'should parse PhantomJS' , ( ) => {
@@ -118,6 +118,14 @@ describe('helper', () => {
118
118
)
119
119
. to . be . equal ( 'Android 4.2.0 (Android 4.2.0)' )
120
120
} )
121
+
122
+ it ( 'should parse Headless Chrome' , ( ) => {
123
+ expecting (
124
+ 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) ' +
125
+ 'HeadlessChrome/70.0.3538.77 Safari/537.36'
126
+ )
127
+ . to . be . equal ( 'HeadlessChrome 70.0.3538 (Linux 0.0.0)' )
128
+ } )
121
129
} )
122
130
123
131
describe ( 'isDefined' , ( ) => {
0 commit comments