Skip to content

Commit

Permalink
add timeout to config mock
Browse files Browse the repository at this point in the history
I had originally omitted the timeout because it seemed to break the test, but upon having the tests fully working, I was able to restore it

this change makes the test code a little more realistic
  • Loading branch information
Abby Wheelis committed Nov 1, 2023
1 parent 0eb7b4b commit 24784db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion www/__mocks__/cordovaMocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ export const mockBEMDataCollection = () => {
},
getConfig: () => {
return new Promise<any>((rs, rj) => {
rs({ 'ios_use_remote_push_for_sync': true });
setTimeout(() => {
rs({ 'ios_use_remote_push_for_sync': true });
}, 100)
});
},
handleSilentPush: () => {
Expand Down

0 comments on commit 24784db

Please sign in to comment.