UNPKG

517 BJavaScriptView Raw
1'use strict';
2
3var fs = require('fs');
4
5function loadFixture(fileName) {
6 return fs.readFileSync('../test/fixtures/'+fileName, 'utf8');
7}
8
9function readChangelog() {
10 return fs.readFileSync('./CHANGELOG.md', 'utf8');
11}
12
13// These helpers are only used in the test suite, so we'll add them to the
14// global namespace to avoid having to retype helpers every time.
15global.loadFixture = module.exports['loadFixture'] = loadFixture;
16global.readChangelog = module.exports['readChangelog'] = readChangelog;