Skip to content

Commit

Permalink
Added same assertions as in promise based test
Browse files Browse the repository at this point in the history
  • Loading branch information
lkrnac committed Oct 27, 2014
1 parent f567405 commit 10eab80
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/jasstorClbkSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ describe('jasstor', () => {
checkError(err, done);
fs.readFile(credentialsFile, (err, data) => {
checkError(err, done);
var changedPassword = JSON.parse(data).user.password;
changedPassword.should.not.equal(originalPassword);
var newPassword = JSON.parse(data).user.password;
newPassword.should.be.ok;
originalPassword.should.be.ok;
newPassword.should.not.equal(originalPassword);
done();
});
});
Expand Down

0 comments on commit 10eab80

Please sign in to comment.