Skip to content

Commit

Permalink
tests: implemented part of the user record checks for a DID user
Browse files Browse the repository at this point in the history
  • Loading branch information
artursudnik committed Jun 14, 2021
1 parent e54bf22 commit b8a733d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/origin-backend/test/did-user.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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 () {
Expand Down

0 comments on commit b8a733d

Please sign in to comment.