File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import { isValidId } from '../src/common';
3
3
import { Role } from '../src/components/authorization/dto/role.dto' ;
4
4
import { FieldRegion } from '../src/components/field-region' ;
5
5
import { FieldZone } from '../src/components/field-zone' ;
6
- import { User } from '../src/components/user' ;
7
6
import {
8
7
createPerson ,
9
8
createSession ,
@@ -15,11 +14,12 @@ import {
15
14
} from './utility' ;
16
15
import { createRegion } from './utility/create-region' ;
17
16
import { createZone } from './utility/create-zone' ;
17
+ import { RawUser } from './utility/fragments' ;
18
18
19
19
describe ( 'Region e2e' , ( ) => {
20
20
let app : TestApp ;
21
- let director : User ;
22
- let newDirector : User ;
21
+ let director : RawUser ;
22
+ let newDirector : RawUser ;
23
23
let fieldZone : FieldZone ;
24
24
25
25
beforeAll ( async ( ) => {
Original file line number Diff line number Diff line change 1
1
import { faker } from '@faker-js/faker' ;
2
2
import { generateId , isValidId } from '../../src/common' ;
3
- import { CreatePerson , User } from '../../src/components/user' ;
3
+ import { CreatePerson } from '../../src/components/user' ;
4
4
import { TestApp } from './create-app' ;
5
- import { fragments } from './fragments' ;
5
+ import { fragments , RawUser } from './fragments' ;
6
6
import { gql } from './gql-tag' ;
7
7
8
8
export async function createPerson (
@@ -39,7 +39,7 @@ export async function createPerson(
39
39
} ,
40
40
) ;
41
41
42
- const actual : User = result . createPerson . user ;
42
+ const actual : RawUser = result . createPerson . user ;
43
43
expect ( actual ) . toBeTruthy ( ) ;
44
44
45
45
expect ( isValidId ( actual . id ) ) . toBe ( true ) ;
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import { faker } from '@faker-js/faker';
2
2
import { times } from 'lodash' ;
3
3
import { isValidId } from '../src/common' ;
4
4
import { FieldZone } from '../src/components/field-zone' ;
5
- import { User } from '../src/components/user' ;
6
5
import {
7
6
createPerson ,
8
7
createSession ,
@@ -12,13 +11,13 @@ import {
12
11
TestApp ,
13
12
} from './utility' ;
14
13
import { createZone } from './utility/create-zone' ;
15
- import { fragments } from './utility/fragments' ;
14
+ import { fragments , RawUser } from './utility/fragments' ;
16
15
17
16
describe ( 'Field Zone e2e' , ( ) => {
18
17
let app : TestApp ;
19
- let director : User ;
18
+ let director : RawUser ;
20
19
21
- let newDirector : User ;
20
+ let newDirector : RawUser ;
22
21
beforeAll ( async ( ) => {
23
22
app = await createTestApp ( ) ;
24
23
await createSession ( app ) ;
You can’t perform that action at this time.
0 commit comments