@@ -171,9 +171,9 @@ describe( 'feature-detection', () => {
171171 expect ( result . supported ) . toBe ( true ) ;
172172 } ) ;
173173
174- it ( 'returns not supported when hardware concurrency is less than 4 ' , ( ) => {
174+ it ( 'returns not supported when hardware concurrency is less than 2 ' , ( ) => {
175175 Object . defineProperty ( navigator , 'hardwareConcurrency' , {
176- value : 2 ,
176+ value : 1 ,
177177 configurable : true ,
178178 } ) ;
179179
@@ -183,9 +183,9 @@ describe( 'feature-detection', () => {
183183 expect ( result . reason ) . toContain ( 'insufficient CPU cores' ) ;
184184 } ) ;
185185
186- it ( 'returns supported when hardware concurrency is 4 or more' , ( ) => {
186+ it ( 'returns supported when hardware concurrency is 2 or more' , ( ) => {
187187 Object . defineProperty ( navigator , 'hardwareConcurrency' , {
188- value : 4 ,
188+ value : 2 ,
189189 configurable : true ,
190190 } ) ;
191191
@@ -218,16 +218,15 @@ describe( 'feature-detection', () => {
218218 expect ( result . reason ) . toContain ( 'too slow' ) ;
219219 } ) ;
220220
221- it ( 'returns not supported when connection is 3g' , ( ) => {
221+ it ( 'returns supported when connection is 3g' , ( ) => {
222222 Object . defineProperty ( navigator , 'connection' , {
223223 value : { saveData : false , effectiveType : '3g' } ,
224224 configurable : true ,
225225 } ) ;
226226
227227 const result = detectClientSideMediaSupport ( ) ;
228228
229- expect ( result . supported ) . toBe ( false ) ;
230- expect ( result . reason ) . toContain ( 'too slow' ) ;
229+ expect ( result . supported ) . toBe ( true ) ;
231230 } ) ;
232231
233232 it ( 'returns not supported when connection is slow-2g' , ( ) => {
0 commit comments