rollbar 2.25.0 → 2.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -422,11 +422,13 @@ describe('callback options', function() {
422
422
 
423
423
  rollbar.log('test'); // generate a payload to inspect
424
424
 
425
- expect(window.fetchStub.called).to.be.ok();
426
- var body = JSON.parse(window.fetchStub.getCall(0).args[1].body);
427
- expect(body.data.foo).to.eql('bar');
425
+ setTimeout(function() {
426
+ expect(window.fetchStub.called).to.be.ok();
427
+ var body = JSON.parse(window.fetchStub.getCall(0).args[1].body);
428
+ expect(body.data.foo).to.eql('bar');
428
429
 
429
- done();
430
+ done();
431
+ }, 1);
430
432
  });
431
433
 
432
434
  it('should use transform when set', function(done) {
@@ -442,11 +444,13 @@ describe('callback options', function() {
442
444
 
443
445
  rollbar.log('test'); // generate a payload to inspect
444
446
 
445
- expect(window.fetchStub.called).to.be.ok();
446
- var body = JSON.parse(window.fetchStub.getCall(0).args[1].body);
447
- expect(body.data.foo).to.eql('baz');
447
+ setTimeout(function() {
448
+ expect(window.fetchStub.called).to.be.ok();
449
+ var body = JSON.parse(window.fetchStub.getCall(0).args[1].body);
450
+ expect(body.data.foo).to.eql('baz');
448
451
 
449
- done();
452
+ done();
453
+ }, 1);
450
454
  });
451
455
  });
452
456