mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 09:36:27 +00:00
actions: fix missed refactoring
Missed some renames when refactoring that weren't picked up locally for some reason.
This commit is contained in:
@@ -7,8 +7,8 @@ import {
|
||||
FirmwareReaderErrorCode,
|
||||
firmwareVersion,
|
||||
} from '@pybricks/firmware';
|
||||
import { AnyAction } from 'redux';
|
||||
import { AsyncSaga } from '../../test';
|
||||
import { Action } from '../actions';
|
||||
import { didCheckForUpdate } from '../app/actions';
|
||||
import { bleDIServiceDidReceiveFirmwareRevision } from '../ble-device-info-service/actions';
|
||||
import {
|
||||
@@ -90,7 +90,7 @@ test.each([
|
||||
fileStorageDidFailToInitialize(new Error('test error')),
|
||||
fileStorageDidFailToReadFile('test.file', new Error('test error')),
|
||||
fileStorageDidFailToWriteFile('test.file', new Error('test error')),
|
||||
])('actions that should show notification: %o', async (action: Action) => {
|
||||
])('actions that should show notification: %o', async (action: AnyAction) => {
|
||||
const getToasts = jest.fn().mockReturnValue([]);
|
||||
const show = jest.fn();
|
||||
const dismiss = jest.fn();
|
||||
@@ -122,7 +122,7 @@ test.each([
|
||||
didCheckForUpdate(true),
|
||||
bleDIServiceDidReceiveFirmwareRevision(firmwareVersion),
|
||||
didFailToSaveAs(new DOMException('test message', 'AbortError')),
|
||||
])('actions that should not show a notification: %o', async (action: Action) => {
|
||||
])('actions that should not show a notification: %o', async (action: AnyAction) => {
|
||||
const getToasts = jest.fn().mockReturnValue([]);
|
||||
const show = jest.fn();
|
||||
const dismiss = jest.fn();
|
||||
@@ -149,7 +149,7 @@ test.each([
|
||||
|
||||
test.each([[didCompile(new Uint8Array()), MessageId.MpyError]])(
|
||||
'actions that should close a notification: %o',
|
||||
async (action: Action, key: string) => {
|
||||
async (action: AnyAction, key: string) => {
|
||||
const getToasts = jest.fn().mockReturnValue([]);
|
||||
const show = jest.fn();
|
||||
const dismiss = jest.fn();
|
||||
|
||||
Reference in New Issue
Block a user