mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 01:23:52 +00:00
app/actions: fix duplicate type name
This fixes a duplicate type name shared by didInstallPrompt and didInstall actions.
This commit is contained in:
+1
-1
@@ -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',
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user