mirror of https://github.com/actions/toolkit
cleaning up tests
parent
2bbbf928ae
commit
e998cf1216
|
@ -357,17 +357,10 @@ describe('upload-artifact', () => {
|
|||
|
||||
it('should throw an error uploading blob chunks get delayed', async () => {
|
||||
const mockDate = new Date('2020-01-01')
|
||||
// const root = path.join('/home/user/files/')
|
||||
const dirPath = path.join(__dirname, `plz-upload`)
|
||||
|
||||
// const filePath = path.join(dirPath, 'file1.txt')
|
||||
// const root = '/home/user/files'
|
||||
if (!fs.existsSync(dirPath)) {
|
||||
fs.mkdirSync(dirPath, {recursive: true})
|
||||
// fs.mkdirSync(path.join(dirPath, 'file1.txt'), {recursive: true})
|
||||
}
|
||||
|
||||
// Now write the file
|
||||
// eslint-disable-next-line @typescript-eslint/await-thenable
|
||||
await fs.writeFile(
|
||||
path.join(dirPath, 'file1.txt'),
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@actions/artifact",
|
||||
"version": "2.1.4",
|
||||
"version": "2.1.5",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@actions/artifact",
|
||||
"version": "2.1.4",
|
||||
"version": "2.1.5",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.10.0",
|
||||
|
|
Loading…
Reference in New Issue