Skip to content

Commit 6aa8a9d

Browse files
style: format code with Prettier
This commit fixes the style issues introduced in ed062ee according to the output from Prettier. Details: #1189
1 parent ed062ee commit 6aa8a9d

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

tests/Plyr.lifecycle.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ describe("<Plyr /> lifecycle", () => {
2525
expect(ref.current?.plyr).toBe(inst);
2626
expect(ctor).toHaveBeenCalledTimes(1);
2727
});
28-
});
28+
});

tests/Plyr.test.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,10 @@ describe("<Plyr /> – constructor and options behavior", () => {
114114
const { render } = require("@testing-library/react");
115115
const { Plyr } = require("../src/index");
116116

117-
const initialSource = { type: "video", sources: [{ src: "init.mp4", type: "video/mp4" }] };
117+
const initialSource = {
118+
type: "video",
119+
sources: [{ src: "init.mp4", type: "video/mp4" }],
120+
};
118121
render(<Plyr source={initialSource} />);
119122
expect(setSourceSpy).toHaveBeenCalledWith(initialSource);
120123
});
@@ -135,7 +138,9 @@ describe("<Plyr /> – constructor and options behavior", () => {
135138
const { render } = require("@testing-library/react");
136139
const { Plyr } = require("../src/index");
137140

138-
const { rerender } = render(<Plyr source={null} options={{ clickToPlay: true }} />);
141+
const { rerender } = render(
142+
<Plyr source={null} options={{ clickToPlay: true }} />
143+
);
139144
expect(mockCtor).toHaveBeenCalledTimes(1);
140145

141146
rerender(<Plyr source={null} options={{ clickToPlay: false }} />);

0 commit comments

Comments
 (0)