@@ -246,24 +246,24 @@ assert.ok(strings[0].includes('foo: { bar: { baz:'));
246
246
assert . ok ( strings [ 0 ] . includes ( 'quux' ) ) ;
247
247
assert . ok ( strings . shift ( ) . includes ( 'quux: true' ) ) ;
248
248
249
- assert . ok ( / ^ l a b e l : \d + \. \d { 3 } m s $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
250
- assert . ok ( / ^ _ _ p r o t o _ _ : \d + \. \d { 3 } m s $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
251
- assert . ok ( / ^ c o n s t r u c t o r : \d + \. \d { 3 } m s $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
252
- assert . ok ( / ^ h a s O w n P r o p e r t y : \d + \. \d { 3 } m s $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
249
+ assert . ok ( / ^ l a b e l : \d + \. \d { 3 } ( m s | s | m i n | h ) $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
250
+ assert . ok ( / ^ _ _ p r o t o _ _ : \d + \. \d { 3 } ( m s | s | m i n | h ) $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
251
+ assert . ok ( / ^ c o n s t r u c t o r : \d + \. \d { 3 } ( m s | s | m i n | h ) $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
252
+ assert . ok ( / ^ h a s O w n P r o p e r t y : \d + \. \d { 3 } ( m s | s | m i n | h ) $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
253
253
254
254
// Verify that console.time() coerces label values to strings as expected
255
- assert . ok ( / ^ : \d + \. \d { 3 } m s $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
256
- assert . ok ( / ^ \[ o b j e c t O b j e c t \] : \d + \. \d { 3 } m s $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
257
- assert . ok ( / ^ \[ o b j e c t O b j e c t \] : \d + \. \d { 3 } m s $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
258
- assert . ok ( / ^ n u l l : \d + \. \d { 3 } m s $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
259
- assert . ok ( / ^ d e f a u l t : \d + \. \d { 3 } m s $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
260
- assert . ok ( / ^ d e f a u l t : \d + \. \d { 3 } m s $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
261
- assert . ok ( / ^ N a N : \d + \. \d { 3 } m s $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
262
-
263
- assert . ok ( / ^ l o g 1 : \d + \. \d { 3 } m s $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
264
- assert . ok ( / ^ l o g 1 : \d + \. \d { 3 } m s t e s t $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
265
- assert . ok ( / ^ l o g 1 : \d + \. \d { 3 } m s { } \[ 1 , 2 , 3 ] $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
266
- assert . ok ( / ^ l o g 1 : \d + \. \d { 3 } m s $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
255
+ assert . ok ( / ^ : \d + \. \d { 3 } ( m s | s | m i n | h ) $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
256
+ assert . ok ( / ^ \[ o b j e c t O b j e c t \] : \d + \. \d { 3 } ( m s | s | m i n | h ) $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
257
+ assert . ok ( / ^ \[ o b j e c t O b j e c t \] : \d + \. \d { 3 } ( m s | s | m i n | h ) $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
258
+ assert . ok ( / ^ n u l l : \d + \. \d { 3 } ( m s | s | m i n | h ) $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
259
+ assert . ok ( / ^ d e f a u l t : \d + \. \d { 3 } ( m s | s | m i n | h ) $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
260
+ assert . ok ( / ^ d e f a u l t : \d + \. \d { 3 } ( m s | s | m i n | h ) $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
261
+ assert . ok ( / ^ N a N : \d + \. \d { 3 } ( m s | s | m i n | h ) $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
262
+
263
+ assert . ok ( / ^ l o g 1 : \d + \. \d { 3 } ( m s | s | m i n | h ) $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
264
+ assert . ok ( / ^ l o g 1 : \d + \. \d { 3 } ( m s | s | m i n | h ) t e s t $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
265
+ assert . ok ( / ^ l o g 1 : \d + \. \d { 3 } ( m s | s | m i n | h ) { } \[ 1 , 2 , 3 ] $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
266
+ assert . ok ( / ^ l o g 1 : \d + \. \d { 3 } ( m s | s | m i n | h ) $ / . test ( strings . shift ( ) . trim ( ) ) ) ;
267
267
268
268
// Make sure that we checked all strings
269
269
assert . strictEqual ( strings . length , 0 ) ;
0 commit comments