Merge pull request #2 from despaintroy/patch-1

Fix incorrect import and pass linter
This commit is contained in:
dittonjs 2022-01-14 13:45:57 -07:00 committed by GitHub
commit 9b140bcdf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
import { Test, TestingModule } from '@nestjs/testing'; import { Test, TestingModule } from '@nestjs/testing';
import { INestApplication } from '@nestjs/common'; import { INestApplication } from '@nestjs/common';
import * as request from 'supertest'; import * as request from 'supertest';
import { AppModule } from './../src/app.module'; import { AppModule } from './../server/app.module';
describe('AppController (e2e)', () => { describe('AppController (e2e)', () => {
let app: INestApplication; let app: INestApplication;
@ -16,9 +16,6 @@ describe('AppController (e2e)', () => {
}); });
it('/ (GET)', () => { it('/ (GET)', () => {
return request(app.getHttpServer()) return request(app.getHttpServer()).get('/').expect(200).expect('Hello World!');
.get('/')
.expect(200)
.expect('Hello World!');
}); });
}); });