Update test to use mock
This commit is contained in:
1 parent
d509a46b27
commit
11c03e66c9
1 file changed
+1
-1
@@ -108,7 +108,7 @@ describe('upload-artifact', () => {
|
|||||||
fixtures.files.map(file => ({
|
fixtures.files.map(file => ({
|
||||||
sourcePath: path.join(fixtures.uploadDirectory, file.name),
|
sourcePath: path.join(fixtures.uploadDirectory, file.name),
|
||||||
destinationPath: file.name,
|
destinationPath: file.name,
|
||||||
stats: new fs.Stats()
|
stats: fs.statSync(path.join(fixtures.uploadDirectory, file.name))
|
||||||
}))
|
}))
|
||||||
)
|
)
|
||||||
jest.spyOn(config, 'getRuntimeToken').mockReturnValue(fixtures.runtimeToken)
|
jest.spyOn(config, 'getRuntimeToken').mockReturnValue(fixtures.runtimeToken)
|
||||||
|
|||||||
Reference in new issue
Block a user