diff --git a/Makefile b/Makefile index 8fa30df..394bf51 100644 --- a/Makefile +++ b/Makefile @@ -50,9 +50,5 @@ install: ## BUILD AUTOMATION ######################### -build: testc.o compile.o -testc.o: - ${NPM} ${NPM_FLAGS} test:coveralls - -compile.o: +build: ${NPM} ${NPM_FLAGS} build \ No newline at end of file diff --git a/__test__/index.test.ts b/__test__/index.test.ts index a1ccb88..cd02324 100644 --- a/__test__/index.test.ts +++ b/__test__/index.test.ts @@ -17,25 +17,19 @@ describe('Node Disk Storage Group Testing', function () { expect(await nds.set('age', 23)).toBeTruthy() }) - it('Should be nds get is success', () => { - setTimeout(async () => { - expect(nds.get).toBeDefined() - expect(await nds.get('name')).toEqual('john doe') - }, 500) + it('Should be nds get is success', async (): Promise => { + expect(nds.get).toBeDefined() + expect(await nds.get('name')).toEqual('john doe') }) - it('Should be nds keys is success', () => { - setTimeout(async () => { - expect(nds.keys).toBeDefined() - expect(await nds.keys()).toBeInstanceOf(Array) - expect((await nds.keys()).length).toBe(2) - }, 500) + it('Should be nds keys is success', async (): Promise => { + expect(nds.keys).toBeDefined() + expect(await nds.keys()).toBeInstanceOf(Array) + expect((await nds.keys()).length).toBe(2) }) - it('Should be nds remove is success', () => { - setTimeout(async () => { - expect(nds.remove).toBeDefined() - expect(await nds.remove('name')).toBeTruthy() - }, 500) + it('Should be nds remove is success', async (): Promise => { + expect(nds.remove).toBeDefined() + expect(await nds.remove('name')).toBeTruthy() }) }) diff --git a/package-lock.json b/package-lock.json index 1ea57f6..7a4ccd1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,17 +1,17 @@ { "name": "node-disk-storage", - "version": "0.0.3", + "version": "0.0.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "node-disk-storage", - "version": "0.0.3", + "version": "0.0.4", "license": "MIT", "dependencies": { "human-size": "^1.1.0", "is-any-type": "^0.0.4", - "nds-core": "^2.0.1" + "nds-core": "^2.0.2" }, "devDependencies": { "@types/jest": "^27.5.2", @@ -6143,9 +6143,9 @@ "dev": true }, "node_modules/nds-core": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/nds-core/-/nds-core-2.0.1.tgz", - "integrity": "sha512-Ir3mB6P8H/3/ZRym9uCyXnE7fhTCYa2Br67o4vDmyROQqgomCohOaNJv7caBqGakmAnsyKt/kX1p9bH8KiT+/A==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/nds-core/-/nds-core-2.0.2.tgz", + "integrity": "sha512-BiZ8zluK6H/Lr4+feKs8yApm2JDnwcCIYGYbRgclxN+UHROfeMBxWoevcUYVIlpVuZIniubO1aw74BVI8PjcNw==", "dependencies": { "is-any-type": "0.0.4", "js-base64": "^3.7.2", @@ -13877,9 +13877,9 @@ "dev": true }, "nds-core": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/nds-core/-/nds-core-2.0.1.tgz", - "integrity": "sha512-Ir3mB6P8H/3/ZRym9uCyXnE7fhTCYa2Br67o4vDmyROQqgomCohOaNJv7caBqGakmAnsyKt/kX1p9bH8KiT+/A==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/nds-core/-/nds-core-2.0.2.tgz", + "integrity": "sha512-BiZ8zluK6H/Lr4+feKs8yApm2JDnwcCIYGYbRgclxN+UHROfeMBxWoevcUYVIlpVuZIniubO1aw74BVI8PjcNw==", "requires": { "is-any-type": "0.0.4", "js-base64": "^3.7.2", diff --git a/package.json b/package.json index df2a64e..4c26d08 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-disk-storage", - "version": "0.0.4", + "version": "0.0.5", "description": "fast and secure local storage persistent data for node js", "main": "./dist/index.js", "files": [ @@ -62,7 +62,7 @@ "dependencies": { "human-size": "^1.1.0", "is-any-type": "^0.0.4", - "nds-core": "^2.0.1" + "nds-core": "^2.0.2" }, "devDependencies": { "@types/jest": "^27.5.2",