mirror of
https://github.com/actions/toolkit.git
synced 2025-06-11 18:20:45 +09:00
replacing writeFile with writeFileSync
This commit is contained in:
parent
fa1cb5d153
commit
234761dc05
1 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,7 @@ import {noopLogs} from './common'
|
|||
import {FilesNotFoundError} from '../src/internal/shared/errors'
|
||||
import {BlockBlobClient} from '@azure/storage-blob'
|
||||
import * as fs from 'fs'
|
||||
import {writeFile} from 'fs/promises'
|
||||
import {writeFileSync} from 'fs/promises'
|
||||
import * as path from 'path'
|
||||
|
||||
describe('upload-artifact', () => {
|
||||
|
@ -363,10 +363,10 @@ describe('upload-artifact', () => {
|
|||
fs.mkdirSync(dirPath, {recursive: true})
|
||||
}
|
||||
|
||||
await writeFile(path.join(dirPath, 'file1.txt'), 'test file content')
|
||||
await writeFile(path.join(dirPath, 'file2.txt'), 'test file content')
|
||||
writeFileSync(path.join(dirPath, 'file1.txt'), 'test file content')
|
||||
writeFileSync(path.join(dirPath, 'file2.txt'), 'test file content')
|
||||
|
||||
await writeFile(path.join(dirPath, 'file3.txt'), 'test file content')
|
||||
writeFileSync(path.join(dirPath, 'file3.txt'), 'test file content')
|
||||
|
||||
jest
|
||||
.spyOn(uploadZipSpecification, 'validateRootDirectory')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue