Skip to content

Commit

Permalink
Fix Redis.Command not being exported correctly. Close #100
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Jul 12, 2015
1 parent 54f6d6a commit a5a9335
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Changelog.md
Expand Up @@ -2,6 +2,8 @@

### Master Branch

* Fix `Redis.Command` not being exported correctly([#100](https://github.com/luin/ioredis/issues/100)).

### v1.6.0 - July 11, 2015

* Add a streaming interface to `SCAN` commands.
Expand Down
1 change: 1 addition & 0 deletions index.js
Expand Up @@ -5,6 +5,7 @@ exports = module.exports = require('./lib/redis');
exports.ReplyError = require('./lib/reply_error');
exports.Promise = require('bluebird');
exports.Cluster = require('./lib/cluster');
exports.Command = require('./lib/command');

exports.print = function (err, reply) {
if (err) {
Expand Down
22 changes: 22 additions & 0 deletions test/functional/exports.js
@@ -0,0 +1,22 @@
describe('exports', function () {
describe('.Command', function () {
it('should be `Command`', function () {
var Command = require('../../lib/command');
expect(Redis.Command).to.eql(Command);
});
});

describe('.Cluster', function () {
it('should be `Cluster`', function () {
var Cluster = require('../../lib/cluster');
expect(Redis.Cluster).to.eql(Cluster);
});
});

describe('.ReplyError', function () {
it('should be `ReplyError`', function () {
var ReplyError = require('../../lib/reply_error');
expect(Redis.ReplyError).to.eql(ReplyError);
});
});
});

0 comments on commit a5a9335

Please sign in to comment.