Skip to content

Commit 9db24c5

Browse files
committed
7203: Applied coding standards
1 parent 672784f commit 9db24c5

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

assets/tests/client/app-bind-key.test.jsx

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ describe("checkLogin retries on unknown status", () => {
133133
expect(screen.queryByText("BIND42")).not.toBeInTheDocument();
134134
// Spinner should still be visible — we are still retrieving.
135135
expect(
136-
container.querySelector(".retrieving-bind-key-spinner")
136+
container.querySelector(".retrieving-bind-key-spinner"),
137137
).toBeInTheDocument();
138138

139139
// Advance past loginCheckTimeout to fire the retry timer.
@@ -144,7 +144,7 @@ describe("checkLogin retries on unknown status", () => {
144144
expect(screen.getByText("BIND42")).toBeInTheDocument();
145145
// Spinner gone — bind key received.
146146
expect(
147-
container.querySelector(".retrieving-bind-key-spinner")
147+
container.querySelector(".retrieving-bind-key-spinner"),
148148
).not.toBeInTheDocument();
149149
});
150150
});
@@ -179,7 +179,7 @@ describe("reauthenticateHandler shows spinner while retrieving bind key", () =>
179179
expect(screen.getByText("INIT01")).toBeInTheDocument();
180180
// Spinner hidden — bind key is shown.
181181
expect(
182-
container.querySelector(".retrieving-bind-key-spinner")
182+
container.querySelector(".retrieving-bind-key-spinner"),
183183
).not.toBeInTheDocument();
184184

185185
// Fire reauthenticate event — refreshToken rejects → catch block
@@ -196,7 +196,7 @@ describe("reauthenticateHandler shows spinner while retrieving bind key", () =>
196196
expect(screen.getByText("REAUTH01")).toBeInTheDocument();
197197
// Spinner gone after recovery.
198198
expect(
199-
container.querySelector(".retrieving-bind-key-spinner")
199+
container.querySelector(".retrieving-bind-key-spinner"),
200200
).not.toBeInTheDocument();
201201
});
202202
});
@@ -227,15 +227,15 @@ describe("spinner persists during checkLogin retry on failure", () => {
227227
// checkLogin rejected → catch → restartLoginTimeout.
228228
// retrievingBindKey was never reset, so spinner is still visible.
229229
expect(
230-
container.querySelector(".retrieving-bind-key-spinner")
230+
container.querySelector(".retrieving-bind-key-spinner"),
231231
).toBeInTheDocument();
232232

233233
// Advance past the retry timeout.
234234
await tick(60);
235235

236236
// Retry succeeded with bind key — spinner gone.
237237
expect(
238-
container.querySelector(".retrieving-bind-key-spinner")
238+
container.querySelector(".retrieving-bind-key-spinner"),
239239
).not.toBeInTheDocument();
240240
expect(screen.getByText("RETRY01")).toBeInTheDocument();
241241
});
@@ -254,15 +254,13 @@ describe("spinner not shown in preview mode", () => {
254254
});
255255

256256
it("does not show spinner when preview is set", async () => {
257-
const { container } = render(
258-
<App preview="screen" previewId="some-id" />
259-
);
257+
const { container } = render(<App preview="screen" previewId="some-id" />);
260258

261259
await tick(0);
262260

263261
// Even though retrievingBindKey starts true, preview mode suppresses it.
264262
expect(
265-
container.querySelector(".retrieving-bind-key-spinner")
263+
container.querySelector(".retrieving-bind-key-spinner"),
266264
).not.toBeInTheDocument();
267265
});
268266
});

0 commit comments

Comments
 (0)