1
0
Fork 0

cleaning up tests

pull/1712/head
Vallie Joseph 2024-04-15 16:32:31 +00:00
parent 2bbbf928ae
commit e998cf1216
2 changed files with 2 additions and 9 deletions

View File

@ -357,17 +357,10 @@ describe('upload-artifact', () => {
it('should throw an error uploading blob chunks get delayed', async () => { it('should throw an error uploading blob chunks get delayed', async () => {
const mockDate = new Date('2020-01-01') const mockDate = new Date('2020-01-01')
// const root = path.join('/home/user/files/')
const dirPath = path.join(__dirname, `plz-upload`) const dirPath = path.join(__dirname, `plz-upload`)
// const filePath = path.join(dirPath, 'file1.txt')
// const root = '/home/user/files'
if (!fs.existsSync(dirPath)) { if (!fs.existsSync(dirPath)) {
fs.mkdirSync(dirPath, {recursive: true}) 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 // eslint-disable-next-line @typescript-eslint/await-thenable
await fs.writeFile( await fs.writeFile(
path.join(dirPath, 'file1.txt'), path.join(dirPath, 'file1.txt'),

View File

@ -1,12 +1,12 @@
{ {
"name": "@actions/artifact", "name": "@actions/artifact",
"version": "2.1.4", "version": "2.1.5",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@actions/artifact", "name": "@actions/artifact",
"version": "2.1.4", "version": "2.1.5",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/core": "^1.10.0", "@actions/core": "^1.10.0",