Skip to content

Commit b80c33a

Browse files
refactor(): update typings, code style update, remove typo
1 parent 7c82521 commit b80c33a

19 files changed

Lines changed: 844 additions & 94 deletions

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ yarn-error.log
2828
/test
2929
/coverage
3030
/.nyc_output
31+
/packages/graphql
3132
/benchmarks/memory
32-
build/config\.gypi
33+
build/config\.gypi

integration/graphql/src/cats/cats.resolvers.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ export class CatsResolvers {
3434

3535
@Subscription('catCreated')
3636
catCreated() {
37-
return {
38-
subscribe: () => pubSub.asyncIterator('catCreated'),
39-
};
37+
return pubSub.asyncIterator('catCreated');
4038
}
4139
}

integration/hello-world/e2e/exceptions.spec.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as request from 'supertest';
1+
import { HttpStatus, INestApplication } from '@nestjs/common';
22
import { Test } from '@nestjs/testing';
3-
import { INestApplication, HttpStatus } from '@nestjs/common';
3+
import * as request from 'supertest';
44
import { ErrorsController } from '../src/errors/errors.controller';
55

66
describe('Error messages', () => {
@@ -10,8 +10,7 @@ describe('Error messages', () => {
1010
beforeEach(async () => {
1111
const module = await Test.createTestingModule({
1212
controllers: [ErrorsController],
13-
})
14-
.compile();
13+
}).compile();
1514

1615
app = module.createNestApplication();
1716
server = app.getHttpServer();
@@ -25,7 +24,7 @@ describe('Error messages', () => {
2524
.expect({
2625
statusCode: 400,
2726
error: 'Bad Request',
28-
message: 'Integration test'
27+
message: 'Integration test',
2928
});
3029
});
3130

@@ -36,7 +35,7 @@ describe('Error messages', () => {
3635
.expect({
3736
statusCode: 400,
3837
error: 'Bad Request',
39-
message: 'Integration test'
38+
message: 'Integration test',
4039
});
4140
});
4241

0 commit comments

Comments
 (0)