Skip to content

Commit 5cc9a01

Browse files
committed
fix unit test
1 parent ed25d27 commit 5cc9a01

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/kuzzle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ Kuzzle.prototype.logout = function (cb) {
538538
});
539539

540540
self.unsetJwtToken();
541-
541+
542542
return self;
543543
};
544544

test/kuzzle/constructor.test.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ describe('Kuzzle constructor', () => {
913913
kuzzle.login('local', loginCredentials);
914914
});
915915

916-
it('should have a empty token in logout callback', function (done) {
916+
it('should have a empty token in logout callback', function () {
917917
var
918918
unsetJwtToken = false,
919919
kuzzle;
@@ -932,10 +932,8 @@ describe('Kuzzle constructor', () => {
932932
cb(null, {});
933933
};
934934

935-
kuzzle.logout(function() {
936-
should(unsetJwtToken).be.exactly(true);
937-
done();
938-
});
935+
kuzzle.logout(() => {});
936+
should(unsetJwtToken).be.exactly(true);
939937
});
940938

941939
it('should give an error if login query fail to the logout callback if is set', function (done) {

0 commit comments

Comments
 (0)