Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite + test storedevicesettings.js #1079

Conversation

Abby-Wheelis
Copy link
Member

This splash service is very similar to the startprefs that I have worked on most recently, it does not seem to be used in any other files, but I think that the device settings it stores are held in the user profile when updateUser from commHelper is called. So unless I discover that these settings are never retrieved, I think that the service does need to be re-written.

Abby Wheelis added 3 commits October 23, 2023 14:21
after converting to typescript, we switch from an angular service to exported functions

to handle the events, switching to exported functions called when that event is accomplished

was imported to controller, but never used
@Abby-Wheelis
Copy link
Member Author

I knew there would be merge conflicts, so I merged my #1072 branch into this one, that PR should be merged before this one.

Abby Wheelis added 6 commits October 23, 2023 15:27
when I merged my startprefs branch, I forgot to update storedevicesettings to reflect the removal of that angular service
since there is no angular code in this file, can't use $ionicPlatform

instead call the init function from the App code
while testing, there were some new or updated mocks needed, as well as some updates to the file in order to allow the tests to wait for these methods to run before testing for the results

I don't think we need to await the functions as they're used, however, because it's ok if they run asyncronously in context
@Abby-Wheelis
Copy link
Member Author

closing this as the changes are now included in #1093

@Abby-Wheelis Abby-Wheelis deleted the rewrite-storedevicesettings branch November 3, 2023 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant