mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-01 22:13:19 +08:00
prettier
This commit is contained in:
@@ -17,7 +17,7 @@ describe('@actions/core/src/command', () => {
|
||||
afterEach(() => {})
|
||||
|
||||
afterAll(() => {
|
||||
process.stdout.write = (originalWriteFunction as unknown) as (
|
||||
process.stdout.write = originalWriteFunction as unknown as (
|
||||
str: string
|
||||
) => boolean
|
||||
})
|
||||
@@ -51,8 +51,7 @@ describe('@actions/core/src/command', () => {
|
||||
command.issueCommand(
|
||||
'some-command',
|
||||
{
|
||||
name:
|
||||
'percent % percent % cr \r cr \r lf \n lf \n colon : colon : comma , comma ,'
|
||||
name: 'percent % percent % cr \r cr \r lf \n lf \n colon : colon : comma , comma ,'
|
||||
},
|
||||
''
|
||||
)
|
||||
@@ -117,11 +116,11 @@ describe('@actions/core/src/command', () => {
|
||||
command.issueCommand(
|
||||
'some-command',
|
||||
{
|
||||
prop1: ({test: 'object'} as unknown) as string,
|
||||
prop2: (123 as unknown) as string,
|
||||
prop3: (true as unknown) as string
|
||||
prop1: {test: 'object'} as unknown as string,
|
||||
prop2: 123 as unknown as string,
|
||||
prop3: true as unknown as string
|
||||
},
|
||||
({test: 'object'} as unknown) as string
|
||||
{test: 'object'} as unknown as string
|
||||
)
|
||||
assertWriteCalls([
|
||||
`::some-command prop1={"test"%3A"object"},prop2=123,prop3=true::{"test":"object"}${os.EOL}`
|
||||
|
||||
@@ -150,10 +150,7 @@ describe('@actions/core/src/summary', () => {
|
||||
})
|
||||
|
||||
it('adds EOL', async () => {
|
||||
await summary
|
||||
.addRaw(fixtures.text)
|
||||
.addEOL()
|
||||
.write()
|
||||
await summary.addRaw(fixtures.text).addEOL().write()
|
||||
await assertSummary(fixtures.text + os.EOL)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user