Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
12 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,6 @@ export default class SystemController { | |
'code': 200, | ||
'version': config.version, | ||
'port': config.port | ||
} | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
import * as supertest from 'supertest'; | ||
import { app } from '../src/server'; | ||
|
||
const _server = app.listen() | ||
const _server = app.listen(); | ||
|
||
const request = supertest.agent(_server) | ||
const request = supertest.agent(_server); | ||
|
||
describe('ROOT', () => { | ||
describe('GET /', () => { | ||
it('should return meta info', () => { | ||
return request.get('/').expect(200) | ||
}) | ||
}) | ||
return request.get('/').expect(200); | ||
}); | ||
}); | ||
describe('GET /system/status', () => { | ||
it('should return system status', () => { | ||
return request.get('/system/status').expect(200) | ||
}) | ||
}) | ||
_server.close() | ||
}) | ||
return request.get('/system/status').expect(200); | ||
}); | ||
}); | ||
_server.close(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
"node_modules/@types" | ||
], | ||
"lib": [ | ||
"dom", | ||
"es2017", | ||
"es6", | ||
"esnext.asynciterable" | ||
|