Skip to content

Commit

Permalink
disableInitialLoad unittests (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaanauati authored Dec 6, 2019
1 parent 7ef2c3d commit f40136e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions spec/test-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,20 @@ describe('DFPManager', () => {
});
});

describe('Disable Initial Load', () => {
it('disableInitiaLoad disabled by default', function testDisableInitialLoad1() {
expect(DFPManager.disableInitialLoadIsEnabled()).equal(false);
});
it('Can enable disableInitialLoad', function testDisableInitialLoad2() {
DFPManager.configureDisableInitialLoad(true);
expect(DFPManager.disableInitialLoadIsEnabled()).equal(true);
});
it('Can disable disableInitialLoad', function testDisableInitialLoad3() {
DFPManager.configureDisableInitialLoad(false);
expect(DFPManager.disableInitialLoadIsEnabled()).equal(false);
});
});

describe('AdSense attributes', () => {
beforeEach(function beforeEach() {
this.argsList1 = {
Expand Down

0 comments on commit f40136e

Please sign in to comment.