1 | ;
|
2 |
|
3 | var fs = require('fs');
|
4 |
|
5 | function loadFixture(fileName) {
|
6 | return fs.readFileSync('../test/fixtures/'+fileName, 'utf8');
|
7 | }
|
8 |
|
9 | function 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.
|
15 | global.loadFixture = module.exports['loadFixture'] = loadFixture;
|
16 | global.readChangelog = module.exports['readChangelog'] = readChangelog;
|