File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1- # app:
1+ app :
22# port: 3000
3- # log_level: debug
3+ log_level : ignore
44# crontime: "*/5 * * * *"
55
66uptimerobot :
Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ export function createAPP() {
4848}
4949
5050// start server
51- export function createServer ( app , port ) {
52- if ( ! port ) port = app . context . config . app . port ;
51+ export function createServer ( app ) {
52+ const port = app . context . config . app . port ;
5353 return app . listen ( port , function ( ) {
5454 logger . info ( "Server starts at" , port ) ;
5555 } ) ;
Original file line number Diff line number Diff line change @@ -3,11 +3,9 @@ import superkoa from "superkoa";
33import cheerio from "cheerio" ;
44import { mockSucc , mockFail } from "./mock" ;
55import { createAPP } from "../src/bootstrap/app" ;
6- import { logger } from "../src/lib/logger" ;
76
87test . beforeEach ( ( { context } ) => {
98 context . app = createAPP ( ) ;
10- logger . setLevel ( "ignore" ) ;
119} ) ;
1210
1311test . serial ( "GET /" , async t => {
You can’t perform that action at this time.
0 commit comments