Skip to content

Commit

Permalink
code format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
xzyaoi committed Nov 14, 2018
1 parent f45439b commit f149ba1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion discovery/src/controller/system.ts
Expand Up @@ -15,6 +15,6 @@ export default class SystemController {
'code': 200,
'version': config.version,
'port': config.port
}
};
}
}
20 changes: 10 additions & 10 deletions discovery/tests/app.spec.ts
@@ -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();
});
1 change: 1 addition & 0 deletions discovery/tsconfig.json
Expand Up @@ -15,6 +15,7 @@
"node_modules/@types"
],
"lib": [
"dom",
"es2017",
"es6",
"esnext.asynciterable"
Expand Down

0 comments on commit f149ba1

Please sign in to comment.