mirror of
https://github.com/trympet/nextcloud-artifacts-action.git
synced 2025-07-26 19:03:17 +02:00
add simple integration test
This commit is contained in:
37
__tests__/doubles/InputsDouble.ts
Normal file
37
__tests__/doubles/InputsDouble.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
||||
import { Inputs } from '../../src/Inputs'
|
||||
import { NoFileOption } from '../../src/NoFileOption'
|
||||
|
||||
export class InputsDouble implements Inputs {
|
||||
get ArtifactName(): string {
|
||||
return process.env['ARTIFACT_NAME']!
|
||||
}
|
||||
|
||||
get ArtifactPath(): string {
|
||||
return process.env['ARTIFACT_PATH']!
|
||||
}
|
||||
|
||||
get Retention(): string {
|
||||
return ''
|
||||
}
|
||||
|
||||
get Endpoint(): string {
|
||||
return process.env['ENDPOINT']!
|
||||
}
|
||||
|
||||
get Username(): string {
|
||||
return process.env['USERNAME']!
|
||||
}
|
||||
|
||||
get Password(): string {
|
||||
return process.env['PASSWORD']!
|
||||
}
|
||||
|
||||
get Token(): string {
|
||||
return process.env['TOKEN']!
|
||||
}
|
||||
|
||||
get NoFileBehvaior(): NoFileOption {
|
||||
return NoFileOption.error
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user