Skip to content

Commit

Permalink
fix lint and tests
Browse files Browse the repository at this point in the history
Signed-off-by: artembuslaev <buslaew.ar@mail.ru>
  • Loading branch information
artembuslaev committed Apr 2, 2023
1 parent 2192d44 commit 0814f79
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
6 changes: 6 additions & 0 deletions api-tests/test-suits/accounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ function Accounts() {
delete result.data.id;
delete result.data.password;
delete result.data.walletToken;
delete result.data.createDate;
delete result.data.updateDate;
assert.deepEqual(result.data, {
role: 'STANDARD_REGISTRY',
username: 'StandardRegistry',
Expand All @@ -141,6 +143,8 @@ function Accounts() {
delete result.data.id;
delete result.data.password;
delete result.data.walletToken;
delete result.data.createDate;
delete result.data.updateDate;
assert.deepEqual(result.data, { username: 'Installer', role: 'USER' });
});

Expand All @@ -161,6 +165,8 @@ function Accounts() {
delete result.data._id;
delete result.data.parent;
delete result.data.walletToken
delete result.data.createDate;
delete result.data.updateDate;
assert.deepEqual(result.data, {
username: 'apiTest',
did: null,
Expand Down
2 changes: 1 addition & 1 deletion common/src/entity/policy.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BaseEntity } from '../models';
import { GenerateUUIDv4, PolicyType } from '@guardian/interfaces';
import { AfterUpdate, BeforeCreate, BeforeUpdate, Entity, OnLoad, Property, Unique } from '@mikro-orm/core';
import { BeforeCreate, BeforeUpdate, Entity, OnLoad, Property, Unique } from '@mikro-orm/core';
import { DataBaseHelper } from '../helpers';
import { ObjectId } from '@mikro-orm/mongodb';

Expand Down
2 changes: 1 addition & 1 deletion common/src/entity/vp-document.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DocumentSignature, DocumentStatus, GenerateUUIDv4, IVP, IVPDocument } from '@guardian/interfaces';
import { Entity, Property, Enum, BeforeCreate, Unique, BeforeUpdate, OnLoad, AfterUpdate } from '@mikro-orm/core';
import { Entity, Property, Enum, BeforeCreate, Unique, BeforeUpdate, OnLoad } from '@mikro-orm/core';
import { BaseEntity } from '../models';
import { ObjectId } from '@mikro-orm/mongodb';
import { DataBaseHelper } from '../helpers';
Expand Down
1 change: 0 additions & 1 deletion common/src/models/base-entity.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { GenerateUUIDv4 } from '@guardian/interfaces';
import { PrimaryKey, Property, SerializedPrimaryKey } from '@mikro-orm/core';
import { ObjectId } from '@mikro-orm/mongodb';

Expand Down

0 comments on commit 0814f79

Please sign in to comment.