Skip to content

Commit

Permalink
feat: Expose Gofer as exports.default
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Krems committed Apr 7, 2016
1 parent 6a5e5b8 commit 69b5ccf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/gofer.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ function Gofer(config, serviceName, clientVersion, clientName) {
}
module.exports = Gofer;
Gofer.fetch = fetch;
Gofer.default = Gofer;

Gofer.prototype.with =
function withOverrides(overrides) {
Expand Down
4 changes: 4 additions & 0 deletions test/gofer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ describe('gofer', function () {
assert.hasType(Function, Gofer.fetch);
});

it('exposes Gofer as exports.default', function () {
assert.equal(Gofer, Gofer.default);
});

describe('direct usage', function () {
var gofer;
before('create Gofer instance', function () {
Expand Down

0 comments on commit 69b5ccf

Please sign in to comment.