Skip to content

Commit 6babc34

Browse files
committed
Update tests to match.
1 parent 1a6991a commit 6babc34

File tree

1 file changed

+29
-14
lines changed

1 file changed

+29
-14
lines changed

tests/lib/enhancers/github.test.ts

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,38 @@ describe('github', () => {
111111
expect(enhancements(document, window)).toMatchInlineSnapshot(`
112112
[
113113
{
114-
"for": "id=feedback name=feedback className=form-control width-full mb-2",
115-
"spot": "NO_SPOT",
114+
"for": "id=:rn: name=null className=prc-Textarea-TextArea-13q4j overtype-input",
115+
"spot": {
116+
"domain": "github.com",
117+
"number": 523,
118+
"slug": "diffplug/selfie",
119+
"title": "[jvm] docs for VCR",
120+
"type": "GH_ISSUE_ADD_COMMENT",
121+
"unique_key": "github.com:diffplug/selfie:523",
122+
},
123+
"title": "[jvm] docs for VCR",
124+
"upperDecoration": <React.Fragment>
125+
<span
126+
className="flex h-4 w-4 flex-shrink-0 items-center justify-center"
127+
>
128+
<IssueOpenedIcon
129+
size={16}
130+
/>
131+
</span>
132+
#
133+
523
134+
<a
135+
className="truncate hover:underline"
136+
href="https://github.com/diffplug/selfie"
137+
>
138+
diffplug/selfie
139+
</a>
140+
</React.Fragment>,
116141
},
117142
]
118143
`)
119144
})
120-
withCorpus('gh_issue_new_populated').it('has enhancement on initial page load', async () => {
145+
withCorpus('gh_issue_new').it('has enhancement on initial page load', async () => {
121146
expect(enhancements(document, window)).toMatchInlineSnapshot(`
122147
[
123148
{
@@ -146,7 +171,7 @@ describe('github', () => {
146171
]
147172
`)
148173
})
149-
withCorpus('gh_issue_populated_comment').it('should create the correct spot object', async () => {
174+
withCorpus('gh_issue').it('should create the correct spot object', async () => {
150175
expect(enhancements(document, window)).toMatchInlineSnapshot(`
151176
[
152177
{
@@ -181,16 +206,6 @@ describe('github', () => {
181206
]
182207
`)
183208
})
184-
withCorpus('gh_new_issue').it('should create the correct spot object', async () => {
185-
expect(enhancements(document, window)).toMatchInlineSnapshot(`
186-
[
187-
{
188-
"for": "id=feedback name=feedback className=form-control width-full mb-2",
189-
"spot": "NO_SPOT",
190-
},
191-
]
192-
`)
193-
})
194209
withCorpus('gh_issue_edit').it('should create the correct spot object', async () => {
195210
expect(enhancements(document, window)).toMatchInlineSnapshot(`
196211
[

0 commit comments

Comments
 (0)