Skip to content

Commit

Permalink
Fixing tests, they were expecting strings because of the issue
Browse files Browse the repository at this point in the history
id's should be numbers now.
  • Loading branch information
hockeytim11 committed Apr 5, 2016
1 parent 20e7b98 commit da3f2ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/tdd/redis.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ describe('redis', function() {
it('should strip the prefix on the id', function () {
var client = redis.createClient();
var id = client.stripFIFO( '03|123' );
id.should.equal('123');
id.should.equal(123);
});
});

Expand Down
6 changes: 3 additions & 3 deletions test/test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ describe 'Kue Tests', ->
jobs.process 'email-to-be-completed', (job, jdone)->
jdone( null, { prop: 'val' } )
jobs.on 'job complete', (id, result) ->
id.should.be.equal testJob.id+''
id.should.be.equal testJob.id
result.prop.should.be.equal 'val'
done()
job_data =
Expand All @@ -154,12 +154,12 @@ describe 'Kue Tests', ->
title: 'Test Email Job'
to: 'tj@learnboost.com'
jobs.on 'job failed attempt', (id, errMsg, doneAttempts) ->
id.should.be.equal newJob.id+''
id.should.be.equal newJob.id
errMsg.should.be.equal errorMsg
doneAttempts.should.be.equal 1
total--
.on 'job failed', (id, errMsg)->
id.should.be.equal newJob.id+''
id.should.be.equal newJob.id
errMsg.should.be.equal errorMsg
(--total).should.be.equal 0
done()
Expand Down

0 comments on commit da3f2ac

Please sign in to comment.