diff --git a/packages/origin-backend/test/did-user.e2e-spec.ts b/packages/origin-backend/test/did-user.e2e-spec.ts index ca0acd225b..187d967f13 100644 --- a/packages/origin-backend/test/did-user.e2e-spec.ts +++ b/packages/origin-backend/test/did-user.e2e-spec.ts @@ -7,7 +7,7 @@ import request from 'supertest'; import { IAM, setCacheClientOptions, setChainConfig } from 'iam-client-lib'; import { OrganizationService } from '../src/pods/organization/organization.service'; -import { UserService } from '../src/pods/user'; +import { TUserBaseEntity, UserService } from '../src/pods/user'; import { bootstrapTestInstance } from './origin-backend'; import jwt from 'jsonwebtoken'; @@ -133,12 +133,18 @@ describe('DID user e2e tests', function () { }); describe('corresponding user table record', function () { + let userRecord: TUserBaseEntity; + + before(async () => { + userRecord = await userService.findByDid(did); + }); + it('should be created', function () { - this.skip(); // TODO: implement test + expect(userRecord).to.exist; }); it('should have did field set to on-chain did', function () { - this.skip(); // TODO: implement test + expect(userRecord.did).eq(did); }); it('should have password field set to null', function () {