Skip to content

Commit c007ea0

Browse files
committed
Resolved lint issue
1 parent e963dc1 commit c007ea0

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

app/javascript/components/pages/admin/forms-list/component.spec.js

+13-16
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { ACTIONS } from "../../../permissions";
1212
import FormsList from "./component";
1313

1414
describe("<FormsList />", () => {
15-
1615
const formSections = [
1716
{
1817
id: 1,
@@ -97,46 +96,44 @@ describe("<FormsList />", () => {
9796
});
9897

9998
it("renders <PageHeading />", () => {
100-
101-
mountedComponent(<FormsList />, initialState)
99+
mountedComponent(<FormsList />, initialState);
102100
expect(screen.getByText(/forms.label/i)).toBeInTheDocument();
103101
});
104102

105103
it("renders <FormFilters />", () => {
106-
mountedComponent(<FormsList />, initialState)
107-
expect(screen.getByTestId('forms-list')).toBeInTheDocument();
104+
mountedComponent(<FormsList />, initialState);
105+
expect(screen.getByTestId("forms-list")).toBeInTheDocument();
108106
});
109107

110108
it("renders form sections", () => {
111-
mountedComponent(<FormsList />, initialState)
112-
expect(screen.getAllByTestId('form-group')).toHaveLength(2);
109+
mountedComponent(<FormsList />, initialState);
110+
expect(screen.getAllByTestId("form-group")).toHaveLength(2);
113111
});
114112

115113
describe("when there are no records", () => {
116114
const stateWithoutRecords = initialState.setIn(["records", "admin", "forms", "formSections"], fromJS([]));
117115

118116
it("renders <FormFilters/>", () => {
119-
mountedComponent(<FormsList />, stateWithoutRecords)
120-
expect(screen.getByTestId('form-list')).toBeInTheDocument()
121-
117+
mountedComponent(<FormsList />, stateWithoutRecords);
118+
expect(screen.getByTestId("form-list")).toBeInTheDocument();
122119
});
123120
it("does not renders form sections", () => {
124-
mountedComponent(<FormsList />, stateWithoutRecords)
125-
expect(screen.queryAllByTestId('form-group')).toHaveLength(0);
121+
mountedComponent(<FormsList />, stateWithoutRecords);
122+
expect(screen.queryAllByTestId("form-group")).toHaveLength(0);
126123
});
127124
});
128125

129126
describe("when there reorder is enabled", () => {
130127
const stateReorderEnabled = initialState.setIn(["records", "admin", "forms", "reorderedForms", "enabled"], true);
131128

132129
it("renders the <RorderActions />", () => {
133-
mountedComponent(<FormsList />, stateReorderEnabled)
134-
expect(screen.getByText(/buttons.cancel/i)).toBeInTheDocument()
130+
mountedComponent(<FormsList />, stateReorderEnabled);
131+
expect(screen.getByText(/buttons.cancel/i)).toBeInTheDocument();
135132
});
136133

137134
it("disable the <FormFilters/>", () => {
138-
mountedComponent(<FormsList />, stateReorderEnabled)
139-
expect(screen.getByTestId('forms-list')).toHaveClass('disabledFilters');
135+
mountedComponent(<FormsList />, stateReorderEnabled);
136+
expect(screen.getByTestId("forms-list")).toHaveClass("disabledFilters");
140137
});
141138
});
142139
});

0 commit comments

Comments
 (0)