mirror of https://github.com/actions/toolkit
add debug logs
parent
143b802c0a
commit
068db23ad8
|
@ -200,11 +200,13 @@ describe('mv', () => {
|
||||||
const root = path.join(getTestTemp(), ' mv_with_no_flags')
|
const root = path.join(getTestTemp(), ' mv_with_no_flags')
|
||||||
const sourceFile = path.join(root, ' mv_source')
|
const sourceFile = path.join(root, ' mv_source')
|
||||||
const targetFile = path.join(root, ' mv_target')
|
const targetFile = path.join(root, ' mv_target')
|
||||||
|
console.log('make')
|
||||||
await io.mkdirP(root)
|
await io.mkdirP(root)
|
||||||
|
console.log('write')
|
||||||
await fs.writeFile(sourceFile, 'test file content', {encoding: 'utf8'})
|
await fs.writeFile(sourceFile, 'test file content', {encoding: 'utf8'})
|
||||||
|
console.log('move')
|
||||||
await io.mv(sourceFile, targetFile)
|
await io.mv(sourceFile, targetFile)
|
||||||
|
console.log('read')
|
||||||
expect(await fs.readFile(targetFile, {encoding: 'utf8'})).toBe(
|
expect(await fs.readFile(targetFile, {encoding: 'utf8'})).toBe(
|
||||||
'test file content'
|
'test file content'
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue