Skip to content

Commit 77184c6

Browse files
committed
Fix tests
1 parent e85d57a commit 77184c6

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

__tests__/summary.test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,7 @@ test('does not add deprecation warning for deny-licenses option if not set', ()
119119
)
120120
const text = core.summary.stringify()
121121

122-
expect(text).not.toContain(
123-
'⚠️ <strong>Deprecation Warning</strong>: The <em>deny-licenses</em> option is deprecated and will be removed in the next major version release, use <em>allow-licenses</em> instead.'
124-
)
122+
expect(text).not.toContain('deny-licenses')
125123
})
126124

127125
test('adds deprecation warning for deny-licenses option if set', () => {
@@ -136,9 +134,7 @@ test('adds deprecation warning for deny-licenses option if set', () => {
136134
)
137135
const text = core.summary.stringify()
138136

139-
expect(text).toContain(
140-
'⚠️ <strong>Deprecation Warning</strong>: The <em>deny-licenses</em> option is deprecated for possible removal in the next major release. See [Deprecate the deny-licenses option #938](https://github.com/actions/dependency-review-action/issues/938) for more information.'
141-
)
137+
expect(text).toContain('deny-licenses')
142138
})
143139

144140
test('returns minimal summary formatted for posting as a PR comment', () => {

0 commit comments

Comments
 (0)