Skip to content

Commit

Permalink
Fixes unit tests and updates snapshot
Browse files Browse the repository at this point in the history
Signed-off-by: Clay Downs <downsrob@amazon.com>
  • Loading branch information
downsrob committed Apr 15, 2022
1 parent 4c1be6f commit 835ba93
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ exports[`<CreateAction /> spec renders the component 1`] = `
>
Rollup
</option>
<option
value="shrink"
>
Shrink
</option>
<option
value="snapshot"
>
Expand Down
4 changes: 2 additions & 2 deletions public/pages/VisualCreatePolicy/utils/helpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ class DummyUIAction implements UIAction<DummyAction> {
}

test("action repository usage", () => {
expect(actionRepoSingleton.getAllActionTypes().length).toBe(13);
actionRepoSingleton.registerAction("dummy", DummyUIAction, DEFAULT_DUMMY);
expect(actionRepoSingleton.getAllActionTypes().length).toBe(14);
actionRepoSingleton.registerAction("dummy", DummyUIAction, DEFAULT_DUMMY);
expect(actionRepoSingleton.getAllActionTypes().length).toBe(15);
expect(actionRepoSingleton.getUIAction("dummy") instanceof DummyUIAction).toBe(true);
expect(actionRepoSingleton.getUIActionFromData(DEFAULT_DUMMY) instanceof DummyUIAction).toBe(true);
});
Expand Down

0 comments on commit 835ba93

Please sign in to comment.