Commit Graph

3 Commits

Author SHA1 Message Date
Moritz Ulmer
8eb76138d0 Fix duplicate slot node types
Why:

- If a node has multiple of the same slot types, it is duplicated

This change addresses the need by:

- Checking if the node type has been added for a slot type
- Adding tests
- Improve legibility
2023-04-08 20:59:38 +02:00
Moritz Ulmer
c18df08a74 Add tests for registerNodeType
Why:

- Ensure that the function works as expected

This change addresses the need by:

- Add tests
- Remove duplicate logic
2023-03-31 15:04:49 +02:00
Moritz Ulmer
6366f9132b Add first test
Why:

- Every journey starts with a first step

This change addresses the need by:

- Adding jest and a test
- Resolve ESLint warnings/errors in the tested function
2023-03-20 16:08:50 +01:00