Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Remove unused spec

Oliver Günther8300880ad6da
diff --git a/frontend/src/app/components/states/switch-state.spec.ts b/frontend/src/app/components/states/switch-state.spec.ts
deleted file mode 100644
index c3e00235ed2..00000000000
--- a/frontend/src/app/components/states/switch-state.spec.ts
+++ /dev/null
@@ -1,41 +0,0 @@
-import {input} from 'reactivestates';
-import {SwitchState} from "./switch-state";
-
-describe("SwitchState", function () {
-
- it("switching", function () {
- const automata = new SwitchState<"Init" | "Phase1">();
-
- // switch and value to process differently based on the switch
- const value = input("result");
-
- // Output states of value when matching substate is active
- const whenInit = automata.fireOnTransition(value, 'Init');
- const whenPhase1 = automata.fireOnTransition(value, 'Phase1');
-
- // Initialized with <no value>, so neither stream is active
- expect(whenInit.hasValue()).toBeFalsy();
- expect(whenPhase1.hasValue()).toBeFalsy();
-
- // Test: switch to valid substate
- automata.transition("Init");
-
- // Invalid substate will yield TS error
- // automata.switch("Unknown"); will result in TS error
-
- expect(whenInit.hasValue()).toBeTruthy();
- expect(whenPhase1.hasValue()).toBeFalsy();
-
- // Test: switch to Phase1
- automata.transition("Phase1");
- expect(whenInit.hasValue()).toBeFalsy();
- expect(whenPhase1.hasValue()).toBeTruthy();
-
- // Reset substate
- automata.reset();
- expect(whenInit.hasValue()).toBeFalsy();
- expect(whenPhase1.hasValue()).toBeFalsy();
-
- });
-
-});