app/actions: fix duplicate type name

This fixes a duplicate type name shared by didInstallPrompt and
didInstall actions.
This commit is contained in:
David Lechner
2022-02-25 10:02:26 -06:00
parent cf8744a6cd
commit 8f377b3909
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ export enum AppActionType {
/* Indicates that the user responded to the install prompt. */
DidInstallPrompt = 'app.action.didInstallPrompt',
/* Indicates that the app was installed. */
DidInstall = 'app.action.didInstallPrompt',
DidInstall = 'app.action.didInstall',
/** The app has just ben started. */
DidStart = 'app.action.didStart',
}
+2 -1
View File
@@ -7,6 +7,7 @@ import {
checkForUpdate,
didBeforeInstallPrompt,
didCheckForUpdate,
didInstall,
didInstallPrompt,
installPrompt,
reload,
@@ -19,7 +20,7 @@ test('monitorAppInstalled', async () => {
window.dispatchEvent(new Event('appinstalled'));
const action = await saga.take();
expect(action).toStrictEqual(didInstallPrompt());
expect(action).toStrictEqual(didInstall());
await saga.end();
});