summary refs log tree commit diff stats
path: root/test/modules
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/modules
parent69af7f12ec17f0aba65b0e23ef4045ee28f2dac8 (diff)
downloadhomestead-1f2a6245ab1e503dee017ab617aaeda816ecb383.tar.lz
homestead-1f2a6245ab1e503dee017ab617aaeda816ecb383.tar.zst
homestead-1f2a6245ab1e503dee017ab617aaeda816ecb383.zip
feat: add tags endpoint
Diffstat (limited to 'test/modules')
-rw-r--r--test/modules/posts.test.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/modules/posts.test.js b/test/modules/posts.test.js
index cdbf22a..4f1efb5 100644
--- a/test/modules/posts.test.js
+++ b/test/modules/posts.test.js
@@ -11,8 +11,9 @@ test('get', t => {
       tags: ['a', 'b']
     })
   )
-  const meta = posts.get(path.resolve(__dirname, '../data/testfile.md'))
-  t.deepEqual(meta.data, expected)
+  const post = posts.get(path.resolve(__dirname, '../data/testfile.md'))
+  t.deepEqual(post.data, expected)
+  t.is(post.basename, 'testfile', 'must include basename')
 })
 
 test('getFolder', t => {