diff --git a/__test__/custup.min.test.js b/__test__/custup.min.test.js index 6cf9bed..21b6f72 100644 --- a/__test__/custup.min.test.js +++ b/__test__/custup.min.test.js @@ -43,8 +43,8 @@ describe('CustUp initialization test', () => { test('CustUp init object to be typeof Object', () => { expect(typeof init1).toBe('object') }); - test('CustUp initializeUI should return false when called after CustUp has alread been initialized in a container', () => { - expect(init1.initializeUI()).toBe(false) + test('CustUp initializeUI should return the initialized instance when after CustUp has alread been initialized in a container', () => { + expect(typeof init1.initializeUI()).toBe(typeof init1) }); test('CustUp should create a wrapper div element', () => { expect(typeof init1._custupEl).toBe('object') diff --git a/__test__/custup.test.js b/__test__/custup.test.js index 2d366cc..fe78b28 100644 --- a/__test__/custup.test.js +++ b/__test__/custup.test.js @@ -43,8 +43,8 @@ describe('CustUp initialization test', () => { test('CustUp init object to be typeof Object', () => { expect(typeof init1).toBe('object') }); - test('CustUp initializeUI should return false when called after CustUp has alread been initialized in a container', () => { - expect(init1.initializeUI()).toBe(false) + test('CustUp initializeUI should return the initialized instance when called after CustUp has alread been initialized in a container', () => { + expect(typeof init1.initializeUI()).toBe(typeof init1) }); test('CustUp should create a wrapper div element', () => { expect(typeof init1._custupEl).toBe('object')