From 3ee26d5719d78bb7137c3f1af850f2148f9cea0b Mon Sep 17 00:00:00 2001 From: blagoev Date: Mon, 18 Sep 2017 09:44:11 +0300 Subject: [PATCH] fix error reporting --- tests/js/user-tests.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/js/user-tests.js b/tests/js/user-tests.js index d8b95708..968703bb 100644 --- a/tests/js/user-tests.js +++ b/tests/js/user-tests.js @@ -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); } }