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 ^_^
This commit is contained in:
Naz 2022-10-13 11:37:54 +08:00
parent f38950c022
commit bc70835890
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
const should = require('should'); const should = require('should');
const path = require('path'); const path = require('path');
const parse = require('../lib/parse'); const {parse} = require('../index');
const csvPath = path.join(__dirname, '/fixtures/'); const csvPath = path.join(__dirname, '/fixtures/');
const readCSV = ({filePath, mapping, defaultLabels}) => parse(filePath, mapping, defaultLabels); const readCSV = ({filePath, mapping, defaultLabels}) => parse(filePath, mapping, defaultLabels);

View File

@ -1,5 +1,5 @@
const should = require('should'); const should = require('should');
const unparse = require('../lib/unparse'); const {unparse} = require('../index');
describe('unparse', function () { describe('unparse', function () {
it('serializes json to CSV and adds standard members fields', async function () { it('serializes json to CSV and adds standard members fields', async function () {