about summary refs log tree commit diff stats
path: root/test/index.test.js
diff options
context:
space:
mode:
authorAlan Pearce2017-06-18 14:12:25 +0200
committerAlan Pearce2017-06-18 14:12:25 +0200
commit1f2a6245ab1e503dee017ab617aaeda816ecb383 (patch)
treeb8aa5820fa5661b652f5f55a9a1e48f9824241eb /test/index.test.js
parent69af7f12ec17f0aba65b0e23ef4045ee28f2dac8 (diff)
downloadhomestead-1f2a6245ab1e503dee017ab617aaeda816ecb383.tar.lz
homestead-1f2a6245ab1e503dee017ab617aaeda816ecb383.tar.zst
homestead-1f2a6245ab1e503dee017ab617aaeda816ecb383.zip
feat: add tags endpoint
Diffstat (limited to 'test/index.test.js')
-rw-r--r--test/index.test.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/index.test.js b/test/index.test.js
index 897438c..a81dbb6 100644
--- a/test/index.test.js
+++ b/test/index.test.js
@@ -21,3 +21,11 @@ test('post', t => {
     .expect(/Lorem ipsum/)
     .then(() => t.pass())
 })
+
+test('tags', t => {
+  return request(app.listen())
+    .get('/tags/a')
+    .expect(200)
+    .expect(/This is a test/)
+    .then(() => t.pass())
+})