Skip to content

Commit 7f8ff98

Browse files
committed
Fix test leaving behind connections
1 parent c308768 commit 7f8ff98

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spec/ParseAPI.spec.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,7 @@ describe('miscellaneous', function() {
213213
expect(typeof user.id).toEqual('string');
214214
expect(user.get('password')).toBeUndefined();
215215
expect(user.getSessionToken()).not.toBeUndefined();
216-
Parse.User.logOut();
217-
done();
216+
Parse.User.logOut().then(done);
218217
}, error: function(error) {
219218
fail(error);
220219
}

0 commit comments

Comments
 (0)