aboutsummaryrefslogtreecommitdiff
path: root/test/nodeserver.test.ts
diff options
context:
space:
mode:
authorcjd242018-02-06 21:20:00 +0000
committercjd242018-02-06 21:20:00 +0000
commit84ef4db188b1988227feba832e5779587de42a48 (patch)
tree47302c5f9cd8da71cbcdb817e3490ab88f856ae2 /test/nodeserver.test.ts
parentMerge branch 'trh/node-tidy' into 'master' (diff)
downloadmedicine-84ef4db188b1988227feba832e5779587de42a48.tar.gz
medicine-84ef4db188b1988227feba832e5779587de42a48.zip

Filled in some of the first method stubs, added serverconfig.ts, and added script to install postgres on lab machine for doing db stuff

Diffstat (limited to 'test/nodeserver.test.ts')
-rw-r--r--test/nodeserver.test.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/nodeserver.test.ts b/test/nodeserver.test.ts
index 3ad37e5..83c66e8 100644
--- a/test/nodeserver.test.ts
+++ b/test/nodeserver.test.ts
@@ -22,5 +22,11 @@ describe('baseRoute', () => {
expect(res.body.message).to.eql('Welcome to the CS3099 BE4 server!');
});
});
+ it('should have an important prop', () => {
+ return chai.request(app).get('/')
+ .then(res => {
+ expect(res.body.important).to.eql('Endpoints start from /cs3099group-be-4/');
+ });
+ });
});