Delete snapshot test, they are not valuable

This commit is contained in:
Jordan Eldredge 2021-07-31 14:09:39 -07:00
parent 608672ff90
commit ec87522c51
2 changed files with 0 additions and 126 deletions

View file

@ -1,38 +0,0 @@
import { Provider } from "react-redux";
import renderer from "react-test-renderer";
import Emitter from "../../emitter";
import getStore from "../../store";
import { loadMediaFiles } from "../../actionCreators";
import PlaylistShade from "./PlaylistShade";
const media = {
addEventListener: jest.fn(),
loadFromUrl: jest.fn(),
setVolume: jest.fn(),
setPreamp: jest.fn(),
setBalance: jest.fn(),
getAnalyser: () => null,
on: jest.fn(),
};
describe("PlaylistShade", () => {
let store;
beforeEach(() => {
store = getStore(media, new Emitter());
});
it("renders to snapshot", () => {
store.dispatch(
loadMediaFiles([{ url: "http://example.com", defaultName: "Some Name" }])
);
const tree = renderer
.create(
<Provider store={store}>
<PlaylistShade />
</Provider>
)
.toJSON();
expect(tree).toMatchSnapshot();
});
});

View file

@ -1,88 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`PlaylistShade renders to snapshot 1`] = `
<div
className="window draggable"
id="playlist-window-shade"
onDoubleClick={[Function]}
onMouseDown={[Function]}
style={
Object {
"width": "275px",
}
}
>
<div
className="left"
>
<div
className="right draggable"
>
<div
id="playlist-shade-track-title"
>
<span
className=" character character-91"
>
[
</span>
<span
className=" character character-110"
>
N
</span>
<span
className=" character character-111"
>
o
</span>
<span
className=" character character-32"
>
</span>
<span
className=" character character-102"
>
f
</span>
<span
className=" character character-105"
>
i
</span>
<span
className=" character character-108"
>
l
</span>
<span
className=" character character-101"
>
e
</span>
<span
className=" character character-93"
>
]
</span>
</div>
<div
id="playlist-shade-time"
/>
<div
id="playlist-resize-target"
onMouseDown={[Function]}
/>
<div
id="playlist-shade-button"
onClick={[Function]}
/>
<div
id="playlist-close-button"
onClick={[Function]}
/>
</div>
</div>
</div>
`;