Skip to content

Commit ba271fe

Browse files
committed
Prettier
1 parent 1089c74 commit ba271fe

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

src/packages/tooltip/tooltip.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,10 +421,10 @@ export const Tooltip = (
421421
{
422422
style: () =>
423423
`top: ${top.val}; right: ${right.val}; bottom: ${bottom.val}; left: ${left.val}; margin-left: ${marginLeft.val}; margin-top: ${marginTop.val};opacity: ${opacity.val}`,
424-
className: () => `${tooltipClassName} introjs-${position.val} ${className || ""}`,
424+
className: () =>
425+
`${tooltipClassName} introjs-${position.val} ${className || ""}`,
425426
role: "dialog",
426427
onclick: onClick ?? null,
427-
428428
},
429429
[
430430
TooltipArrow({

src/packages/tour/components/TourRoot.test.ts

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,18 @@ jest.mock("../../dom", () => ({
88
derive: jest.fn((fn) => ({ val: fn() })),
99
}));
1010

11-
jest.mock("../ReferenceLayer", () => ({ ReferenceLayer: jest.fn(() => "ReferenceLayer") }));
12-
jest.mock("../HelperLayer", () => ({ HelperLayer: jest.fn(() => "HelperLayer") }));
13-
jest.mock("../OverlayLayer", () => ({ OverlayLayer: jest.fn(() => "OverlayLayer") }));
14-
jest.mock("../DisableInteraction", () => ({ DisableInteraction: jest.fn(() => "DisableInteraction") }));
11+
jest.mock("../ReferenceLayer", () => ({
12+
ReferenceLayer: jest.fn(() => "ReferenceLayer"),
13+
}));
14+
jest.mock("../HelperLayer", () => ({
15+
HelperLayer: jest.fn(() => "HelperLayer"),
16+
}));
17+
jest.mock("../OverlayLayer", () => ({
18+
OverlayLayer: jest.fn(() => "OverlayLayer"),
19+
}));
20+
jest.mock("../DisableInteraction", () => ({
21+
DisableInteraction: jest.fn(() => "DisableInteraction"),
22+
}));
1523
jest.mock("../steps", () => ({ nextStep: jest.fn(), previousStep: jest.fn() }));
1624

1725
jest.useFakeTimers();
@@ -23,7 +31,7 @@ describe("TourRoot", () => {
2331
tour = {
2432
getCurrentStepSignal: jest.fn(() => ({ val: 0 })),
2533
getRefreshesSignal: jest.fn(() => ({ val: 0 })),
26-
getSteps: jest.fn(() => [{ disableInteraction: false }] ),
34+
getSteps: jest.fn(() => [{ disableInteraction: false }]),
2735
getTargetElement: jest.fn(() => "targetElement"),
2836
getOption: jest.fn((option: keyof typeof Option) => {
2937
const options = {
@@ -116,7 +124,8 @@ describe("TourRoot", () => {
116124
it("calls setDontShowAgain when checkbox is toggled", () => {
117125
// Arrange
118126
const component = TourRoot({ tour });
119-
const dontShowAgainHandler = (component.children[1] as any).props.onDontShowAgainChange;
127+
const dontShowAgainHandler = (component.children[1] as any).props
128+
.onDontShowAgainChange;
120129

121130
// Act
122131
dontShowAgainHandler(true);

0 commit comments

Comments
 (0)