Skip to content

Commit

Permalink
better test names
Browse files Browse the repository at this point in the history
  • Loading branch information
alextaing committed Oct 24, 2023
1 parent 0a034ee commit 548f688
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/studio-ui/tests/components/UndoRedo.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ describe("Undo/redo", () => {
expect(useStudioStore.getState().pages.activeComponentUUID).toBeUndefined();
});

it("undoes last state update using control + z", async () => {
it("undoes last state update using control + z if OS is not OS X", async () => {
platform.os.family = "Windows";

render(<UndoRedo />);
expect(useStudioStore.getState().pages.activeComponentUUID).toBe(
"searchbar-uuid"
Expand All @@ -67,9 +66,8 @@ describe("Undo/redo", () => {
expect(useStudioStore.getState().pages.activeComponentUUID).toBeUndefined();
});

it("undoes last state update using command + z", async () => {
it("undoes last state update using command + z is OS is OS X", async () => {
platform.os.family = "OS X";

render(<UndoRedo />);
expect(useStudioStore.getState().pages.activeComponentUUID).toBe(
"searchbar-uuid"
Expand Down

0 comments on commit 548f688

Please sign in to comment.