mirror of
https://github.com/actions/toolkit
synced 2025-05-10 00:53:10 +00:00
feedback: add summary write options
This commit is contained in:
parent
6295f5d25b
commit
edee7cde32
2 changed files with 13 additions and 4 deletions
|
@ -111,7 +111,7 @@ describe('@actions/core/src/markdown-summary', () => {
|
|||
|
||||
it('overwrites text to summary file', async () => {
|
||||
await fs.promises.writeFile(testFilePath, 'overwrite', {encoding: 'utf8'})
|
||||
await markdownSummary.addRaw(fixtures.text).write(true)
|
||||
await markdownSummary.addRaw(fixtures.text).write({overwrite: true})
|
||||
await assertSummary(fixtures.text)
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue