catch bot rate limiting error, update tests

This commit is contained in:
Sharon Kennedy
2020-03-18 03:00:43 -04:00
parent 260bbbaf80
commit ef3c44f0d5
7 changed files with 156 additions and 242 deletions

View File

@@ -19,8 +19,8 @@ export const mockRegisterRequest = jest
export const mockDeleteMultipleDevices = jest
.fn()
.mockImplementation((params) => {
if (!params.auth) {
.mockImplementation((devices, auth) => {
if (!auth) {
return Promise.reject({
data: { session: "session_id_1234" }
})