From bc708358904cef9c184ae2753dd81bcc750c5abf Mon Sep 17 00:00:00 2001 From: Naz Date: Thu, 13 Oct 2022 11:37:54 +0800 Subject: [PATCH] Increased test coverage refs https://github.com/TryGhost/Toolbox/issues/430 - The bonus of using the module exports file is that it also gets included in the test coverage statistics ^_^ --- ghost/members-csv/test/parse.test.js | 2 +- ghost/members-csv/test/unparse.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ghost/members-csv/test/parse.test.js b/ghost/members-csv/test/parse.test.js index f697ca9173..408483eba7 100644 --- a/ghost/members-csv/test/parse.test.js +++ b/ghost/members-csv/test/parse.test.js @@ -1,6 +1,6 @@ const should = require('should'); const path = require('path'); -const parse = require('../lib/parse'); +const {parse} = require('../index'); const csvPath = path.join(__dirname, '/fixtures/'); const readCSV = ({filePath, mapping, defaultLabels}) => parse(filePath, mapping, defaultLabels); diff --git a/ghost/members-csv/test/unparse.test.js b/ghost/members-csv/test/unparse.test.js index b09b518084..970c94b518 100644 --- a/ghost/members-csv/test/unparse.test.js +++ b/ghost/members-csv/test/unparse.test.js @@ -1,5 +1,5 @@ const should = require('should'); -const unparse = require('../lib/unparse'); +const {unparse} = require('../index'); describe('unparse', function () { it('serializes json to CSV and adds standard members fields', async function () {