Skip to content

Commit

Permalink
New: Expose the interpret object in the API (closes #2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Kellen authored and phated committed Jan 3, 2019
1 parent 1eb24b7 commit dc60e68
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ exports.load = function (filepath) {
exports.registerFor(filepath);
return require(filepath);
};

exports.interpret = interpret;
6 changes: 6 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,9 @@ describe('load', function () {
expect(rechoir.load('./test/fixtures/test.json')).to.deep.equal(expected);
});
});

describe('interpret', function () {
it('should expose the underlying interpret object', function () {
expect(rechoir.interpret).to.deep.equal(require('interpret'));
});
});

0 comments on commit dc60e68

Please sign in to comment.