From f40136e44607a969d79bdb00fc2a3328f1118c47 Mon Sep 17 00:00:00 2001 From: Jonatan Alexis Anauati Date: Fri, 6 Dec 2019 07:52:58 -0300 Subject: [PATCH] disableInitialLoad unittests (#180) --- spec/test-manager.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/spec/test-manager.js b/spec/test-manager.js index b597889..94a85f1 100644 --- a/spec/test-manager.js +++ b/spec/test-manager.js @@ -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 = {