summary refs log tree commit diff stats
path: root/test/modules
diff options
context:
space:
mode:
authorAlan Pearce2017-06-18 12:32:11 +0200
committerAlan Pearce2017-06-18 12:32:11 +0200
commit75ef26ea24032c7e8a6a5d63e65c70d43c88a938 (patch)
tree940f7c9714228ae97a0d4d3b68b8c89e55dac6e4 /test/modules
parentdb7c9f17bbfe026630448d5f24ed7d42e4d859ad (diff)
downloadhomestead-75ef26ea24032c7e8a6a5d63e65c70d43c88a938.tar.lz
homestead-75ef26ea24032c7e8a6a5d63e65c70d43c88a938.tar.zst
homestead-75ef26ea24032c7e8a6a5d63e65c70d43c88a938.zip
fix(metadata): make return values consistent
Diffstat (limited to 'test/modules')
-rw-r--r--test/modules/metadata.test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/modules/metadata.test.js b/test/modules/metadata.test.js
index 139de60..f154eac 100644
--- a/test/modules/metadata.test.js
+++ b/test/modules/metadata.test.js
@@ -11,10 +11,10 @@ test('getFileMetadata', t => {
       tags: ['a', 'b']
     })
   )
-  t.deepEqual(
-    metadata.getFileMetadata(path.resolve(__dirname, '../data/testfile.md')),
-    expected
+  const meta = metadata.getFileMetadata(
+    path.resolve(__dirname, '../data/testfile.md')
   )
+  t.deepEqual(meta.data, expected)
 })
 
 test('getFolderMetadata', t => {