fix error reporting
This commit is contained in:
parent
ac6a39728a
commit
3ee26d5719
|
@ -55,13 +55,13 @@ function assertIsError(error, message) {
|
|||
}
|
||||
}
|
||||
|
||||
function assertIsAuthError(error, code, type) {
|
||||
function assertIsAuthError(error, code, title) {
|
||||
TestCase.assertInstanceOf(error, Realm.Sync.AuthError, 'The API should return an AuthError');
|
||||
if (code) {
|
||||
TestCase.assertEqual(error.code, code);
|
||||
}
|
||||
if (type) {
|
||||
TestCase.assertEqual(error.type, type);
|
||||
if (title) {
|
||||
TestCase.assertEqual(error.title, title);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue