Skip to content

Commit

Permalink
update spec
Browse files Browse the repository at this point in the history
  • Loading branch information
brycedorn committed Oct 25, 2018
1 parent 0b49da4 commit f65f68e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/manager.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,14 +484,14 @@ describe('AdManager', function() {
expect(eventSpy.called).to.be.true;
});

it('- does not dispatch slot render end, does not call callback when ad comes back empty', function() {
it('- dispatches slot render end, calls callback even when ad comes back empty', function() {
event.isEmpty = true;

adManager.onSlotRenderEnded(event);

expect($(adElement).data('ad-load-state')).to.equal('empty');
expect(adManager.adUnits.units.header.onSlotRenderEnded.called).to.be.false;
expect(eventSpy.called).to.be.false;
expect(adManager.adUnits.units.header.onSlotRenderEnded.called).to.be.true;
expect(eventSpy.called).to.be.true;
});
});

Expand Down

0 comments on commit f65f68e

Please sign in to comment.