Skip to content

Commit

Permalink
test(helpers): create index.js which exports helpers
Browse files Browse the repository at this point in the history
Update `server.js` to import `index.js`
  • Loading branch information
remarkablemark committed Nov 3, 2019
1 parent 1d9a7d4 commit a9255d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions test/helpers/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
runTests: require('./run-tests'),
throwsError: require('./throws-error')
};
3 changes: 1 addition & 2 deletions test/server/server.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
const { assert } = require('chai');
const htmlparser = require('htmlparser2');
const cases = require('../cases');
const runTests = require('../helpers/run-tests');
const throwsError = require('../helpers/throws-error');
const { runTests, throwsError } = require('../helpers');
const { CASE_SENSITIVE_TAG_NAMES } = require('../../lib/constants');

/**
Expand Down

0 comments on commit a9255d5

Please sign in to comment.