Skip to content

Commit 22d0db4

Browse files
author
Andrew L
committed
Update the test suites
1 parent 7ff5173 commit 22d0db4

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed

src/__tests__/StateLabel.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ describe('StateLabel', () => {
3434
it('respects the status prop', () => {
3535
expect(render(<StateLabel status="issueOpened" />)).toMatchSnapshot()
3636
expect(render(<StateLabel status="issueClosed" />)).toMatchSnapshot()
37+
expect(render(<StateLabel status="issueClosedNotPlanned" />)).toMatchSnapshot()
3738
expect(render(<StateLabel status="pullMerged" />)).toMatchSnapshot()
3839
})
3940

src/__tests__/__snapshots__/StateLabel.test.tsx.snap

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,62 @@ exports[`StateLabel respects the status prop 3`] = `
231231
margin-right: 4px;
232232
}
233233
234+
.c0 {
235+
display: -webkit-inline-box;
236+
display: -webkit-inline-flex;
237+
display: -ms-inline-flexbox;
238+
display: inline-flex;
239+
-webkit-align-items: center;
240+
-webkit-box-align: center;
241+
-ms-flex-align: center;
242+
align-items: center;
243+
font-weight: 600;
244+
line-height: 16px;
245+
color: #ffffff;
246+
text-align: center;
247+
border-radius: 100px;
248+
background-color: #6e7781;
249+
color: #ffffff;
250+
padding-left: 12px;
251+
padding-right: 12px;
252+
padding-top: 8px;
253+
padding-bottom: 8px;
254+
font-size: 14px;
255+
}
256+
257+
<span
258+
className="c0"
259+
>
260+
<svg
261+
aria-hidden="true"
262+
className="c1"
263+
dangerouslySetInnerHTML={
264+
Object {
265+
"__html": "<path fill-rule=\\"evenodd\\" d=\\"M1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0zM8 0a8 8 0 100 16A8 8 0 008 0zm3.28 5.78a.75.75 0 00-1.06-1.06l-5.5 5.5a.75.75 0 101.06 1.06l5.5-5.5z\\"></path>",
266+
}
267+
}
268+
fill="currentColor"
269+
height={16}
270+
role="img"
271+
style={
272+
Object {
273+
"display": "inline-block",
274+
"overflow": "visible",
275+
"userSelect": "none",
276+
"verticalAlign": "text-bottom",
277+
}
278+
}
279+
viewBox="0 0 16 16"
280+
width={16}
281+
/>
282+
</span>
283+
`;
284+
285+
exports[`StateLabel respects the status prop 4`] = `
286+
.c1 {
287+
margin-right: 4px;
288+
}
289+
234290
.c0 {
235291
display: -webkit-inline-box;
236292
display: -webkit-inline-flex;

0 commit comments

Comments
 (0)