Skip to content

Commit 3ac37e5

Browse files
committed
test: Updated tests
1 parent 503c520 commit 3ac37e5

File tree

91 files changed

+16
-16
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+16
-16
lines changed

examples/auth/e2e/todo-item.resolver.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,10 @@ describe('TodoItemResolver (auth - e2e)', () => {
140140
}
141141
}`
142142
})
143-
.expect(200, {
144-
data: {
145-
todoItem: null
146-
}
143+
.expect(200)
144+
.then(({ body }) => {
145+
expect(body.errors).toHaveLength(1);
146+
expect(body.errors[0].message).toContain('Unable to find');
147147
}));
148148

149149

disabled/custom-service/e2e/fixtures.ts renamed to examples/custom-service/e2e/fixtures.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Connection } from 'typeorm';
2-
import { executeTruncate } from '../../../examples/helpers';
2+
import { executeTruncate } from '../../helpers';
33
import { TodoItemEntity } from '../src/todo-item/todo-item.entity';
44

55
const tables = ['todo_item'];
File renamed without changes.
File renamed without changes.

disabled/custom-service/src/app.module.ts renamed to examples/custom-service/src/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Module } from '@nestjs/common';
22
import { GraphQLModule } from '@nestjs/graphql';
33
import { TypeOrmModule } from '@nestjs/typeorm';
4-
import { formatGraphqlError, typeormOrmConfig } from '../../../examples/helpers';
4+
import { formatGraphqlError, typeormOrmConfig } from '../../helpers';
55
import { TodoItemModule } from './todo-item/todo-item.module';
66

77
@Module({
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)