From 544aec51fc17604c827eb944a6f1c7cae2754d4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ali=20R=C4=B1za=20Kat?= Date: Tue, 5 Nov 2024 13:26:24 +0300 Subject: [PATCH] Cosmetic Updates --- test/tests_device_id.js | 15 ++++++++++----- test/tests_device_id_type.js | 36 +++++++++++++++++++++++------------- 2 files changed, 33 insertions(+), 18 deletions(-) diff --git a/test/tests_device_id.js b/test/tests_device_id.js index 30abd5f..db719e8 100644 --- a/test/tests_device_id.js +++ b/test/tests_device_id.js @@ -31,7 +31,8 @@ describe("Device ID tests", () => { beforeEach(async() => { await hp.clearStorage(); }); - it("1.set_id with SDK generated to developer supplied", (done) => { + + it("1- set_id with SDK generated to developer supplied", (done) => { // initialize SDK initMain(undefined); validateSdkGeneratedId(Countly.get_device_id()); @@ -47,7 +48,8 @@ describe("Device ID tests", () => { done(); }, hp.sWait); }); - it("2.set_id with developer supplied to developer supplied", (done) => { + + it("2- set_id with developer supplied to developer supplied", (done) => { // initialize SDK initMain("ID2"); validateDeveloperSuppliedId("ID2"); @@ -61,7 +63,8 @@ describe("Device ID tests", () => { done(); }, hp.sWait); }); - it("3.set_id with same custom id", (done) => { + + it("3- set_id with same custom id", (done) => { // initialize SDK initMain("ID"); validateDeveloperSuppliedId("ID"); @@ -69,7 +72,8 @@ describe("Device ID tests", () => { validateDeveloperSuppliedId("ID"); done(); }); - it("4.set_id with same sdk generated id", (done) => { + + it("4- set_id with same sdk generated id", (done) => { // initialize SDK initMain(undefined); var id = Countly.get_device_id(); @@ -79,7 +83,8 @@ describe("Device ID tests", () => { validateSdkGeneratedId(id); done(); }); - it("5.set_id with invalid ids", (done) => { + + it("5- set_id with invalid ids", (done) => { // initialize SDK initMain(undefined); var id = Countly.get_device_id(); diff --git a/test/tests_device_id_type.js b/test/tests_device_id_type.js index 70336a5..4e7c683 100644 --- a/test/tests_device_id_type.js +++ b/test/tests_device_id_type.js @@ -58,7 +58,7 @@ describe("Device ID type tests", () => { beforeEach(async() => { await hp.clearStorage(); }); - it("1.Generated device ID", (done) => { + it("1- Generated device ID", (done) => { // initialize SDK initMain(undefined); Countly.begin_session(); @@ -71,7 +71,8 @@ describe("Device ID type tests", () => { done(); }, hp.sWait); }); - it("2.Developer supplied device ID", (done) => { + + it("2- Developer supplied device ID", (done) => { // initialize SDK initMain("ID"); Countly.begin_session(); @@ -84,7 +85,8 @@ describe("Device ID type tests", () => { done(); }, hp.sWait); }); - it("3.With stored dev ID and no new ID", (done) => { + + it("3- With stored dev ID and no new ID", (done) => { // initialize SDK initMain("ID"); Countly.begin_session(); @@ -105,7 +107,8 @@ describe("Device ID type tests", () => { }, hp.sWait); }, hp.sWait); }); - it("4.With stored dev ID and with new ID", (done) => { + + it("4- With stored dev ID and with new ID", (done) => { // initialize SDK initMain("ID"); Countly.begin_session(); @@ -126,7 +129,8 @@ describe("Device ID type tests", () => { }, hp.sWait); }, hp.sWait); }); - it("5.With stored generated ID and no new ID", (done) => { + + it("5- With stored generated ID and no new ID", (done) => { // initialize SDK initMain(undefined); Countly.begin_session(); @@ -149,7 +153,8 @@ describe("Device ID type tests", () => { }, hp.sWait); }, hp.sWait); }); - it("6.With stored generated ID and with new ID", (done) => { + + it("6- With stored generated ID and with new ID", (done) => { // initialize SDK initMain(undefined); Countly.begin_session(); @@ -172,7 +177,8 @@ describe("Device ID type tests", () => { }, hp.sWait); }, hp.sWait); }); - it("7.With stored dev ID and no new ID, flag set", (done) => { + + it("7- With stored dev ID and no new ID, flag set", (done) => { // initialize SDK initMain("ID"); Countly.begin_session(); @@ -194,7 +200,7 @@ describe("Device ID type tests", () => { }, hp.sWait); }); - it("8.With stored dev ID and with new ID, flag set", (done) => { + it("8- With stored dev ID and with new ID, flag set", (done) => { setTimeout(() => { // initialize SDK initMain("ID"); @@ -217,7 +223,8 @@ describe("Device ID type tests", () => { }, hp.lWait); }, hp.lWait); }); - it("9.With stored sdk ID and no new ID, flag set", (done) => { + + it("9- With stored sdk ID and no new ID, flag set", (done) => { // initialize SDK initMain(undefined); Countly.begin_session(); @@ -241,7 +248,7 @@ describe("Device ID type tests", () => { }, hp.sWait); }); - it("10.With stored sdk ID and with new ID, flag set", (done) => { + it("10- With stored sdk ID and with new ID, flag set", (done) => { // initialize SDK initMain(undefined); Countly.begin_session(); @@ -264,7 +271,8 @@ describe("Device ID type tests", () => { }, hp.sWait); }, hp.sWait); }); - it("11.Change generated device ID", (done) => { + + it("11- Change generated device ID", (done) => { // initialize SDK initMain(undefined); Countly.change_id("changedID"); @@ -280,7 +288,8 @@ describe("Device ID type tests", () => { }, hp.sWait); }, hp.sWait); }); - it("12.Change developer supplied device ID", (done) => { + + it("12- Change developer supplied device ID", (done) => { // initialize SDK initMain("ID"); Countly.change_id("changedID"); @@ -296,7 +305,8 @@ describe("Device ID type tests", () => { }, hp.sWait); }, hp.sWait); }); - it("13.Check new DeviceIdType interface is equal to common interface", (done) => { + + it("13- Check new DeviceIdType interface is equal to common interface", (done) => { setTimeout(() => { assert.equal(Countly.DeviceIdType.DEVELOPER_SUPPLIED, cc.deviceIdTypeEnums.DEVELOPER_SUPPLIED); assert.equal(Countly.DeviceIdType.SDK_GENERATED, cc.deviceIdTypeEnums.SDK_GENERATED);