From dc8e6acc0e7ad220fb13465bd42c71faefbab6d4 Mon Sep 17 00:00:00 2001 From: Angelin Sirbu Date: Sun, 21 Nov 2021 20:20:13 +0200 Subject: [PATCH 1/2] Moved tests outside of src --- package.json | 2 +- {src/tests => tests}/email-exists.js | 0 {src/tests => tests}/schema-validator.test.js | 2 +- {src/tests => tests}/schemas/email-schema.js | 0 {src/tests => tests}/schemas/min-max-schema.js | 0 {src/tests => tests}/schemas/required-optional-schema.js | 0 6 files changed, 2 insertions(+), 2 deletions(-) rename {src/tests => tests}/email-exists.js (100%) rename {src/tests => tests}/schema-validator.test.js (97%) rename {src/tests => tests}/schemas/email-schema.js (100%) rename {src/tests => tests}/schemas/min-max-schema.js (100%) rename {src/tests => tests}/schemas/required-optional-schema.js (100%) diff --git a/package.json b/package.json index 1d0bc9a..cbe5ea3 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "NodeJS validation using schemas", "main": "./src/schema-validator.js", "scripts": { - "test": "mocha src/tests/schema-validator.test.js" + "test": "mocha tests/schema-validator.test.js" }, "repository": { "type": "git", diff --git a/src/tests/email-exists.js b/tests/email-exists.js similarity index 100% rename from src/tests/email-exists.js rename to tests/email-exists.js diff --git a/src/tests/schema-validator.test.js b/tests/schema-validator.test.js similarity index 97% rename from src/tests/schema-validator.test.js rename to tests/schema-validator.test.js index a88da0d..f552c72 100644 --- a/src/tests/schema-validator.test.js +++ b/tests/schema-validator.test.js @@ -1,4 +1,4 @@ -const { schemaValidator } = require('../schema-validator'); +const { schemaValidator } = require('../src//schema-validator'); const assert = require('assert'); const requiredOptionalSchema = require('./schemas/required-optional-schema'); diff --git a/src/tests/schemas/email-schema.js b/tests/schemas/email-schema.js similarity index 100% rename from src/tests/schemas/email-schema.js rename to tests/schemas/email-schema.js diff --git a/src/tests/schemas/min-max-schema.js b/tests/schemas/min-max-schema.js similarity index 100% rename from src/tests/schemas/min-max-schema.js rename to tests/schemas/min-max-schema.js diff --git a/src/tests/schemas/required-optional-schema.js b/tests/schemas/required-optional-schema.js similarity index 100% rename from src/tests/schemas/required-optional-schema.js rename to tests/schemas/required-optional-schema.js From c01c486bf35cd9a3cddf61bad313984ef7b71cfc Mon Sep 17 00:00:00 2001 From: Angelin Sirbu Date: Sun, 21 Nov 2021 20:20:40 +0200 Subject: [PATCH 2/2] Bumped version to 0.10.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cbe5ea3..777a2ba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nodejs-schema-validator", - "version": "0.10.1", + "version": "0.10.2", "description": "NodeJS validation using schemas", "main": "./src/schema-validator.js", "scripts": {