TimelineQueueButtonHeader: fix tests

profile-avatar-switcher
Alex Gleason 2021-09-27 19:17:52 -05:00
rodzic cbb033e866
commit 161b59431f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
2 zmienionych plików z 45 dodań i 1 usunięć

Wyświetl plik

@ -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,
};

Wyświetl plik

@ -7,7 +7,19 @@ exports[`<TimelineQueueButtonHeader /> renders correctly 1`] = `
<a <a
className="timeline-queue-header__btn" className="timeline-queue-header__btn"
onClick={[Function]} onClick={[Function]}
/> >
<div
className="svg-icon"
>
<svg
id={
Object {
"process": [Function],
}
}
/>
</div>
</a>
</div> </div>
`; `;
@ -19,6 +31,17 @@ exports[`<TimelineQueueButtonHeader /> renders correctly 2`] = `
className="timeline-queue-header__btn" className="timeline-queue-header__btn"
onClick={[Function]} onClick={[Function]}
> >
<div
className="svg-icon"
>
<svg
id={
Object {
"process": [Function],
}
}
/>
</div>
Click to see 1 new post Click to see 1 new post
</a> </a>
</div> </div>
@ -32,6 +55,17 @@ exports[`<TimelineQueueButtonHeader /> renders correctly 3`] = `
className="timeline-queue-header__btn" className="timeline-queue-header__btn"
onClick={[Function]} onClick={[Function]}
> >
<div
className="svg-icon"
>
<svg
id={
Object {
"process": [Function],
}
}
/>
</div>
Click to see 9999999 new posts Click to see 9999999 new posts
</a> </a>
</div> </div>