From 5409d506c1701f683ba8ddd31fdc8c166e932ee5 Mon Sep 17 00:00:00 2001 From: Michael Lustig Date: Tue, 9 Apr 2024 08:00:09 -0400 Subject: [PATCH] Beginning refactoring cleanup of folders/files --- .../src/lib/features/counting/counting.machine.ts | 2 +- .../src/lib/features/someFeature/someFeature.machine.ts | 2 +- .../permissionLogic/src/lib/permission-logic.spec.ts | 1 - .../permissionReporting/permissionReporting.machine.ts | 4 ++-- 4 files changed, 4 insertions(+), 5 deletions(-) rename libs/permissions/permissionLogic/src/lib/{ => permission}/permissionReporting/permissionReporting.machine.ts (96%) diff --git a/libs/permissions/permissionLogic/src/lib/features/counting/counting.machine.ts b/libs/permissions/permissionLogic/src/lib/features/counting/counting.machine.ts index 2faecff..2c92111 100644 --- a/libs/permissions/permissionLogic/src/lib/features/counting/counting.machine.ts +++ b/libs/permissions/permissionLogic/src/lib/features/counting/counting.machine.ts @@ -4,7 +4,7 @@ import { PermissionStatus, PermissionStatuses, } from '../../permission.types'; -import { permissionReportingMachine } from '../../permissionReporting/permissionReporting.machine'; +import { permissionReportingMachine } from '../../permission/permissionReporting/permissionReporting.machine'; export const countingMachineThatNeedsPermissionAt3 = setup({ actors: { diff --git a/libs/permissions/permissionLogic/src/lib/features/someFeature/someFeature.machine.ts b/libs/permissions/permissionLogic/src/lib/features/someFeature/someFeature.machine.ts index de0ccf6..99b286e 100644 --- a/libs/permissions/permissionLogic/src/lib/features/someFeature/someFeature.machine.ts +++ b/libs/permissions/permissionLogic/src/lib/features/someFeature/someFeature.machine.ts @@ -1,5 +1,5 @@ import { raise, sendTo, setup } from 'xstate'; -import { permissionReportingMachine } from '../../permissionReporting/permissionReporting.machine'; +import { permissionReportingMachine } from '../../permission/permissionReporting/permissionReporting.machine'; import { Permissions } from '../../permission.types'; export const someFeatureMachine = setup({ diff --git a/libs/permissions/permissionLogic/src/lib/permission-logic.spec.ts b/libs/permissions/permissionLogic/src/lib/permission-logic.spec.ts index bfcf561..ad60198 100644 --- a/libs/permissions/permissionLogic/src/lib/permission-logic.spec.ts +++ b/libs/permissions/permissionLogic/src/lib/permission-logic.spec.ts @@ -41,7 +41,6 @@ describe('Counting Machine That Needs Permission At 3', () => { // }).inspect, }); applicationActor.start(); - applicationActor.getSnapshot(); const permissionMonitorActor = applicationActor.system.get( ActorSystemIds.permissionMonitoring diff --git a/libs/permissions/permissionLogic/src/lib/permissionReporting/permissionReporting.machine.ts b/libs/permissions/permissionLogic/src/lib/permission/permissionReporting/permissionReporting.machine.ts similarity index 96% rename from libs/permissions/permissionLogic/src/lib/permissionReporting/permissionReporting.machine.ts rename to libs/permissions/permissionLogic/src/lib/permission/permissionReporting/permissionReporting.machine.ts index 8aef352..7743f3f 100644 --- a/libs/permissions/permissionLogic/src/lib/permissionReporting/permissionReporting.machine.ts +++ b/libs/permissions/permissionLogic/src/lib/permission/permissionReporting/permissionReporting.machine.ts @@ -6,8 +6,8 @@ import { sendTo, setup, } from 'xstate'; -import { Permission, Permissions } from '../permission.types'; -import { ActorSystemIds } from '../application/actorIds'; +import { Permission, Permissions } from '../../permission.types'; +import { ActorSystemIds } from '../../application/actorIds'; export const permissionReportingMachine = setup({ types: {