summaryrefslogtreecommitdiff
path: root/test/app.e2e-spec.ts
diff options
context:
space:
mode:
authorJoseph Ditton <jditton.atomic@gmail.com>2021-10-29 18:57:24 -0600
committerJoseph Ditton <jditton.atomic@gmail.com>2021-10-29 18:57:24 -0600
commit1997a981105c9910d2d0a150adb39a6bfe706e01 (patch)
tree8a92d9d944a9597f509cb3512c72a3285e073d35 /test/app.e2e-spec.ts
downloadlocchat-1997a981105c9910d2d0a150adb39a6bfe706e01.tar.gz
locchat-1997a981105c9910d2d0a150adb39a6bfe706e01.zip
first commit
Diffstat (limited to 'test/app.e2e-spec.ts')
-rw-r--r--test/app.e2e-spec.ts24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/app.e2e-spec.ts b/test/app.e2e-spec.ts
new file mode 100644
index 0000000..50cda62
--- /dev/null
+++ b/test/app.e2e-spec.ts
@@ -0,0 +1,24 @@
+import { Test, TestingModule } from '@nestjs/testing';
+import { INestApplication } from '@nestjs/common';
+import * as request from 'supertest';
+import { AppModule } from './../src/app.module';
+
+describe('AppController (e2e)', () => {
+ let app: INestApplication;
+
+ beforeEach(async () => {
+ const moduleFixture: TestingModule = await Test.createTestingModule({
+ imports: [AppModule],
+ }).compile();
+
+ app = moduleFixture.createNestApplication();
+ await app.init();
+ });
+
+ it('/ (GET)', () => {
+ return request(app.getHttpServer())
+ .get('/')
+ .expect(200)
+ .expect('Hello World!');
+ });
+});