tsconfig.json: restore wms-core/types include and add test

This commit is contained in:
Alice Gaudon 2020-09-03 11:46:00 +02:00
parent bce48f81b6
commit 5157b12b77
2 changed files with 10 additions and 1 deletions

View File

@ -5,6 +5,7 @@ export default class HomeController extends Controller {
routes(): void {
this.get('/', this.getHome, 'home');
this.get('/about', this.getAbout, 'about');
this.get('/back', this.goBack, 'about');
}
private async getHome(req: Request, res: Response) {
@ -14,4 +15,11 @@ export default class HomeController extends Controller {
private async getAbout(req: Request, res: Response) {
res.render('about');
}
/**
* This is to test and assert that wms-core extended types are available
*/
private async goBack(req: Request, res: Response) {
res.redirectBack();
}
}

View File

@ -13,6 +13,7 @@
]
},
"include": [
"src/**/*"
"src/**/*",
"node_modules/wms-core/types"
]
}