Skip to content

Commit c50d5c3

Browse files
committed
Tests: Updated auth tests due to the restore of the XHR object
1 parent 956c395 commit c50d5c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test.auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe('Github constructor (failing case)', function() {
3737
it('should fail authentication and return err', function(done) {
3838
user.notifications(function(err) {
3939
err.error.should.equal(401, 'Return 401 status for bad auth');
40-
err.request.message.should.equal('Bad credentials');
40+
JSON.parse(err.request.responseText).message.should.equal('Bad credentials');
4141
done();
4242
});
4343
});

0 commit comments

Comments
 (0)