From 75ef26ea24032c7e8a6a5d63e65c70d43c88a938 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 18 Jun 2017 12:32:11 +0200 Subject: fix(metadata): make return values consistent --- test/modules/metadata.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') 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 => { -- cgit 1.4.1