mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-21 08:49:07 +08:00
cleaning up tests
This commit is contained in:
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'),
|
||||
|
4
packages/artifact/package-lock.json
generated
4
packages/artifact/package-lock.json
generated
@ -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…
x
Reference in New Issue
Block a user