-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Expand file tree
/
Copy pathIssueFormatter.test.js.snapshot
More file actions
58 lines (52 loc) · 1.21 KB
/
IssueFormatter.test.js.snapshot
File metadata and controls
58 lines (52 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
exports[`IssueFormatter > formats a detailed issue toJSONDetailed 1`] = `
{
"id": 5,
"type": "issue",
"title": "Mock Issue Title",
"description": "# Mock Issue Title\\n\\nThis is a mock issue description sub value",
"links": [
{
"link": "http://example.com",
"linkTitle": "Link 1"
}
],
"affectedResources": [
{
"uid": "1_1",
"data": {
"violatingNodeAttribute": "test"
}
}
]
}
`;
exports[`IssueFormatter > formats a detailed issue toStringDetailed 1`] = `
ID: 5
Message: issue> Mock Issue Title
This is a mock issue description sub value
Learn more:
[Link 1](http://example.com)
### Affected resources
uid=1_1 data={"violatingNodeAttribute":"test"}
`;
exports[`IssueFormatter > formats a simplified issue toJSON 1`] = `
{
"type": "issue",
"title": "Issue Title",
"count": 5,
"id": 1
}
`;
exports[`IssueFormatter > formats a simplified issue toString 1`] = `
msgid=1 [issue] Issue Title (count: 5)
`;
exports[`IssueFormatter > formats an issue message toJSON 1`] = `
{
"type": "issue",
"title": "Mock Issue Title",
"id": 5
}
`;
exports[`IssueFormatter > formats an issue message toString 1`] = `
msgid=5 [issue] Mock Issue Title (count: undefined)
`;