aboutsummaryrefslogtreecommitdiff
path: root/test/nodeserver.test.ts
diff options
context:
space:
mode:
authorTom Harley2018-02-08 18:28:57 +0000
committerTom Harley2018-02-08 18:28:57 +0000
commitd1f88d13f5c60cd0229d4267f92cd4d79f5fbff3 (patch)
treece54ab9c43b611455b658cf2eaf4fc3c5ea71732 /test/nodeserver.test.ts
parentadded literal matching (diff)
parentconfigured server to use pg server on lab machines (diff)
downloadmedicine-d1f88d13f5c60cd0229d4267f92cd4d79f5fbff3.tar.gz
medicine-d1f88d13f5c60cd0229d4267f92cd4d79f5fbff3.zip

Merge branch ‘trh/db-orm’ into trh/payload-checker

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/');
+ });
+ });
});