WebHooker/tests/__snapshots__/formatter-snapshot.test.ts.snap

84 lines
2 KiB
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Bun Snapshot v1, https://bun.sh/docs/test/snapshots
exports[`formatter snapshots push 1`] = `
{
"author": {
"iconUrl": undefined,
"name": "octocat",
"url": "https://github.com/octocat",
},
"color": 3056719,
"description": "[View comparison](https://github.com/acme/widget/compare/aaa...bbb)",
"fields": [
{
"inline": false,
"name": "",
"value": "[\`bbbbbbb\`](https://github.com/acme/widget/commit/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb) Fix login bug",
},
],
"footer": "acme/widget",
"timestamp": "TIMESTAMP",
"title": "acme/widget: Pushed 1 commit to [\`main\`](https://github.com/acme/widget/tree/main)",
"url": "https://github.com/acme/widget/compare/aaa...bbb",
}
`;
exports[`formatter snapshots pull_request 1`] = `
{
"actions": [
{
"id": "ghpr|merge|acme|widget|7",
"label": "Merge",
"style": "primary",
},
{
"id": "ghpr|close|acme|widget|7",
"label": "Close",
"style": "danger",
},
],
"author": {
"iconUrl": undefined,
"name": "octocat",
"url": "https://github.com/octocat",
},
"color": 2991182,
"description":
"🟢 **Opened** pull request
Implements the new feature."
,
"fields": [
{
"inline": true,
"name": "Branch",
"value": "[\`feature\`](https://github.com/acme/widget/tree/feature) → [\`main\`](https://github.com/acme/widget/tree/main)",
},
],
"footer": "acme/widget",
"timestamp": "TIMESTAMP",
"title": "acme/widget#7: Add feature",
"url": "https://github.com/acme/widget/pull/7",
}
`;
exports[`formatter snapshots issues 1`] = `
{
"author": {
"iconUrl": undefined,
"name": "octocat",
"url": "https://github.com/octocat",
},
"color": 2991182,
"description":
"🟢 **Opened** issue
Login fails on iOS Safari."
,
"fields": undefined,
"footer": "acme/widget",
"timestamp": "TIMESTAMP",
"title": "acme/widget#12: Broken login on mobile",
"url": "https://github.com/acme/widget/issues/12",
}
`;