Skip to content

Commit

Permalink
fix(): fix tests descriptions (sub-app)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Nov 4, 2020
1 parent 18f835a commit b8b6c9e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib/sub-app/files/ts/src/__name__.controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Test, TestingModule } from '@nestjs/testing';
import { <%= classify(name) %>Controller } from './<%= name %>.controller';
import { <%= classify(name) %>Service } from './<%= name %>.service';

describe('AppController', () => {
describe('<%= classify(name) %>Controller', () => {
let <%= camelize(name) %>Controller: <%= classify(name) %>Controller;

beforeEach(async () => {
Expand Down
5 changes: 3 additions & 2 deletions src/lib/sub-app/files/ts/test/app.e2e-spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Test, TestingModule } from '@nestjs/testing';
import { INestApplication } from '@nestjs/common';
import * as request from 'supertest';
import { <%= classify(name)%>Module } from './../src/<%= classify(name)%>.module';

describe('AppController (e2e)', () => {
let app;
describe('<%= classify(name)%>Controller (e2e)', () => {
let app: INestApplication;

beforeEach(async () => {
const moduleFixture: TestingModule = await Test.createTestingModule({
Expand Down
3 changes: 2 additions & 1 deletion src/lib/sub-app/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@
"format": "path",
"description": "Applications root directory."
}
}
},
"required": ["name"]
}

0 comments on commit b8b6c9e

Please sign in to comment.