From dc60e68c6f6ae1f0a6be50b4fdd3905405a7f373 Mon Sep 17 00:00:00 2001 From: Tyler Kellen Date: Wed, 17 Dec 2014 12:44:09 -0500 Subject: [PATCH] New: Expose the interpret object in the API (closes #2) --- index.js | 2 ++ test/index.js | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/index.js b/index.js index 12ebf7e..e047dec 100644 --- a/index.js +++ b/index.js @@ -24,3 +24,5 @@ exports.load = function (filepath) { exports.registerFor(filepath); return require(filepath); }; + +exports.interpret = interpret; diff --git a/test/index.js b/test/index.js index 3364c0d..8a2cc82 100644 --- a/test/index.js +++ b/test/index.js @@ -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')); + }); +});