From 9c928988114aa758cf323f0a195d37c1cb51c90e Mon Sep 17 00:00:00 2001 From: Abayomi Amusa Date: Wed, 17 Jan 2024 00:50:46 +0100 Subject: [PATCH] I updated a test case with the fixed initialization issue --- __test__/custup.min.test.js | 4 ++-- __test__/custup.test.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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')