From 4d81cde94711daa64315f8b81790a43e7af5dce4 Mon Sep 17 00:00:00 2001 From: Nebulis Date: Thu, 6 Feb 2020 11:47:35 +0800 Subject: [PATCH] fix: test --- .circleci/config.yml | 3 +++ package.json | 1 - test/verify.v3.test.ts | 6 +++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3918094..175fe6a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -12,6 +12,9 @@ jobs: - run: name: lint command: npm run lint + - run: + name: test + command: npm run test - run: name: build command: npm run build diff --git a/package.json b/package.json index 114d43d..557d182 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,6 @@ "clean": "rimraf dist", "prebuild": "npm run docs && npm run clean", "build": "tsc --emitDeclarationOnly && babel src -d dist --ignore src/**/*.spec.ts,src/**/*.test.ts -x .js,.ts,.tsx", - "preversion": "npm run lint && npm test && npm run build", "semantic-release": "semantic-release", "commit": "git-cz", "commit:retry": "git-cz --retry", diff --git a/test/verify.v3.test.ts b/test/verify.v3.test.ts index 0d65c60..8223127 100644 --- a/test/verify.v3.test.ts +++ b/test/verify.v3.test.ts @@ -71,7 +71,11 @@ describe("verify", () => { }, { data: { value: "0x8Fc57204c35fb9317D91285eF52D6b892EC08cD3", status: "INVALID" }, - message: "Document store 0x8Fc57204c35fb9317D91285eF52D6b892EC08cD3 not found in the registry", + reason: { + code: 0, + codeString: "INVALID_IDENTITY", + message: "Document store 0x8Fc57204c35fb9317D91285eF52D6b892EC08cD3 not found in the registry" + }, name: "OpencertsRegistryVerifier", status: "INVALID", type: "ISSUER_IDENTITY"