Skip to content

Commit 3d1434a

Browse files
committed
chore: Prettier fixes
1 parent 5b57e26 commit 3d1434a

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/components/SaveButton/SaveButton.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ import { Provider } from "react-redux";
44
import configureStore from "redux-mock-store";
55
import { triggerSave } from "../../redux/EditorSlice";
66
import SaveButton from "./SaveButton";
7+
import useIsOnline from "../../hooks/useIsOnline";
78

89
jest.mock("../../hooks/useIsOnline");
910

10-
import useIsOnline from "../../hooks/useIsOnline";
11-
1211
const logInHandler = jest.fn();
1312

1413
describe("When project is loaded", () => {

src/hooks/useIsOnline.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@ describe("useIsOnline", () => {
7474
dispatchSWMessage({ type: "OTHER" });
7575
expect(result.current).toBe(true);
7676
});
77-
});
77+
});

src/redux/EditorSlice.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ test("Action setReadOnly correctly sets readOnly", () => {
117117
test("Action setOfflineEnabled correctly sets offlineEnabled", () => {
118118
const previousState = { offlineEnabled: false };
119119
const expectedState = { offlineEnabled: true };
120-
expect(reducer(previousState, setOfflineEnabled(true))).toEqual(expectedState);
120+
expect(reducer(previousState, setOfflineEnabled(true))).toEqual(
121+
expectedState,
122+
);
121123
});
122124

123125
test("Action addProjectComponent adds component to project with correct content", () => {

0 commit comments

Comments
 (0)