Skip to content

Commit

Permalink
Fix test on 0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
davedoesdev committed May 21, 2016
1 parent 8a38629 commit cb7d8f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/test_spec.js
Expand Up @@ -2484,7 +2484,11 @@ describe('qlobber-fsq', function ()
{
fsq.publish('\0foo', 'bar', function (err)
{
expect(err.code).to.equal('ENOENT');
if (!err) { return done(new Error('expected an error')); }
if (err.code) // 0.12 doesn't set code
{
expect(err.code).to.equal('ENOENT');
}
done();
});
});
Expand Down

0 comments on commit cb7d8f1

Please sign in to comment.