TimelineQueueButtonHeader: fix tests
This commit is contained in:
10
app/soapbox/components/__mocks__/react-inlinesvg.js
vendored
Normal file
10
app/soapbox/components/__mocks__/react-inlinesvg.js
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
export default function InlineSVG({ src }) {
|
||||
return <svg id={src} />;
|
||||
}
|
||||
|
||||
InlineSVG.propTypes = {
|
||||
src: PropTypes.node.isRequired,
|
||||
};
|
||||
@ -7,7 +7,19 @@ exports[`<TimelineQueueButtonHeader /> renders correctly 1`] = `
|
||||
<a
|
||||
className="timeline-queue-header__btn"
|
||||
onClick={[Function]}
|
||||
/>
|
||||
>
|
||||
<div
|
||||
className="svg-icon"
|
||||
>
|
||||
<svg
|
||||
id={
|
||||
Object {
|
||||
"process": [Function],
|
||||
}
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
`;
|
||||
|
||||
@ -19,6 +31,17 @@ exports[`<TimelineQueueButtonHeader /> renders correctly 2`] = `
|
||||
className="timeline-queue-header__btn"
|
||||
onClick={[Function]}
|
||||
>
|
||||
<div
|
||||
className="svg-icon"
|
||||
>
|
||||
<svg
|
||||
id={
|
||||
Object {
|
||||
"process": [Function],
|
||||
}
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
Click to see 1 new post
|
||||
</a>
|
||||
</div>
|
||||
@ -32,6 +55,17 @@ exports[`<TimelineQueueButtonHeader /> renders correctly 3`] = `
|
||||
className="timeline-queue-header__btn"
|
||||
onClick={[Function]}
|
||||
>
|
||||
<div
|
||||
className="svg-icon"
|
||||
>
|
||||
<svg
|
||||
id={
|
||||
Object {
|
||||
"process": [Function],
|
||||
}
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
Click to see 9999999 new posts
|
||||
</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user