@@ -6,7 +6,7 @@ import Tracing from '../src/tracing/tracing.js';
66
77import { fakeServer } from './browser.rollbar.test-utils.ts' ;
88import { loadHtml } from './util/fixtures.ts' ;
9- import { setTimeout } from './util/timers.js ' ;
9+ import { setTimeoutAsync } from './util/timers.ts ' ;
1010
1111describe ( 'options' , function ( ) {
1212 beforeEach ( function ( ) {
@@ -132,7 +132,7 @@ describe('options.captureUncaught', function () {
132132 expect ( element ) . to . exist ;
133133 element . click ( ) ;
134134
135- await setTimeout ( 1 , null ) ;
135+ await setTimeoutAsync ( 1 ) ;
136136
137137 server . respond ( ) ;
138138
@@ -168,7 +168,7 @@ describe('options.captureUncaught', function () {
168168
169169 element . click ( ) ;
170170
171- await setTimeout ( 1 , null ) ;
171+ await setTimeoutAsync ( 1 ) ;
172172
173173 server . respond ( ) ;
174174 expect ( server . requests . length ) . to . eql ( 0 ) ; // Disabled, no event
@@ -180,7 +180,7 @@ describe('options.captureUncaught', function () {
180180
181181 element . click ( ) ;
182182
183- await setTimeout ( 1 , null ) ;
183+ await setTimeoutAsync ( 1 ) ;
184184
185185 server . respond ( ) ;
186186
@@ -197,7 +197,7 @@ describe('options.captureUncaught', function () {
197197
198198 element . click ( ) ;
199199
200- await setTimeout ( 1 , null ) ;
200+ await setTimeoutAsync ( 1 ) ;
201201
202202 server . respond ( ) ;
203203 expect ( server . requests . length ) . to . eql ( 0 ) ; // Disabled, no event
@@ -231,7 +231,7 @@ describe('options.captureUncaught', function () {
231231 Error . prepareStackTrace ( e , [ ] ) ;
232232 }
233233
234- await setTimeout ( 1 , null ) ;
234+ await setTimeoutAsync ( 1 ) ;
235235
236236 server . respond ( ) ;
237237
@@ -268,7 +268,7 @@ describe('options.captureUncaught', function () {
268268 element . click ( ) ; // use for loop to ensure the stack traces have identical line/col info
269269 }
270270
271- await setTimeout ( 1 , null ) ;
271+ await setTimeoutAsync ( 1 ) ;
272272
273273 server . respond ( ) ;
274274
@@ -309,7 +309,7 @@ describe('options.captureUncaught', function () {
309309 element . click ( ) ; // use for loop to ensure the stack traces have identical line/col info
310310 }
311311
312- await setTimeout ( 1 , null ) ;
312+ await setTimeoutAsync ( 1 ) ;
313313
314314 server . respond ( ) ;
315315
@@ -344,7 +344,7 @@ describe('options.captureUncaught', function () {
344344 expect ( element ) . to . exist ;
345345 element . click ( ) ;
346346
347- await setTimeout ( 1 , null ) ;
347+ await setTimeoutAsync ( 1 ) ;
348348 server . respond ( ) ;
349349
350350 const body = JSON . parse ( server . requests [ 0 ] . requestBody ) ;
@@ -379,7 +379,7 @@ describe('options.captureUncaught', function () {
379379 expect ( element ) . to . exist ;
380380 element . click ( ) ;
381381
382- await setTimeout ( 1 , null ) ;
382+ await setTimeoutAsync ( 1 ) ;
383383
384384 server . respond ( ) ;
385385
@@ -429,7 +429,7 @@ describe('options.captureUncaught', function () {
429429
430430 Promise . reject ( new Error ( 'test reject' ) ) ;
431431
432- await setTimeout ( 500 , null ) ;
432+ await setTimeoutAsync ( 500 ) ;
433433
434434 server . respond ( ) ;
435435
@@ -462,7 +462,7 @@ describe('options.captureUncaught', function () {
462462
463463 Promise . reject ( new Error ( 'test reject' ) ) ;
464464
465- await setTimeout ( 500 , null ) ;
465+ await setTimeoutAsync ( 500 ) ;
466466
467467 server . respond ( ) ;
468468
@@ -496,7 +496,7 @@ describe('options.captureUncaught', function () {
496496
497497 Promise . reject ( new Error ( 'test reject' ) ) ;
498498
499- await setTimeout ( 500 , null ) ;
499+ await setTimeoutAsync ( 500 ) ;
500500
501501 server . respond ( ) ;
502502
@@ -539,7 +539,7 @@ describe('options.captureUncaught', function () {
539539
540540 rollbar . log ( 'test message' , { foo : 'bar' } ) ;
541541
542- await setTimeout ( 1 , null ) ;
542+ await setTimeoutAsync ( 1 ) ;
543543
544544 server . respond ( ) ;
545545
@@ -567,7 +567,7 @@ describe('options.captureUncaught', function () {
567567
568568 rollbar . log ( new Error ( 'test error' ) , { foo : 'bar' } ) ;
569569
570- await setTimeout ( 1 , null ) ;
570+ await setTimeoutAsync ( 1 ) ;
571571
572572 server . respond ( ) ;
573573
@@ -601,7 +601,7 @@ describe('options.captureUncaught', function () {
601601
602602 rollbar . error ( err , { foo : 'bar' } ) ;
603603
604- await setTimeout ( 1 , null ) ;
604+ await setTimeoutAsync ( 1 ) ;
605605
606606 server . respond ( ) ;
607607
@@ -649,7 +649,7 @@ describe('options.captureUncaught', function () {
649649 custom . self = custom ;
650650 rollbar . error ( err , custom ) ;
651651
652- await setTimeout ( 1 , null ) ;
652+ await setTimeoutAsync ( 1 ) ;
653653
654654 server . respond ( ) ;
655655
@@ -691,7 +691,7 @@ describe('options.captureUncaught', function () {
691691
692692 rollbar . log ( null ) ;
693693
694- await setTimeout ( 1 , null ) ;
694+ await setTimeoutAsync ( 1 ) ;
695695
696696 server . respond ( ) ;
697697
@@ -720,7 +720,7 @@ describe('options.captureUncaught', function () {
720720 rollbar . log ( error ) ;
721721 rollbar . log ( error , { skipFrames : 1 } ) ;
722722
723- await setTimeout ( 1 , null ) ;
723+ await setTimeoutAsync ( 1 ) ;
724724
725725 server . respond ( ) ;
726726
0 commit comments