mirror of
https://github.com/docker/login-action.git
synced 2025-05-12 00:19:29 +02:00
kebab-case for action inputs, fix README, fix comments in retry tests
Signed-off-by: Fedor Dikarev <fedor.dikarev@gmail.com>
This commit is contained in:
parent
fdf655e1ab
commit
c4d11d0a1e
4 changed files with 17 additions and 14 deletions
|
@ -9,7 +9,8 @@ test('login retries function', async () => {
|
|||
let stderr_strings: string[] = [];
|
||||
let call_count: number = -1;
|
||||
|
||||
// const execSpy = jest.spyOn(Docker, 'getExecOutput').mockImplementation(async () => {
|
||||
// using spyOn() here isn't enough, as we alter the logic
|
||||
// so use `jest.fn()` here for the `Docker.getExecOutput`
|
||||
Docker.getExecOutput = jest.fn(async () => {
|
||||
call_count++;
|
||||
console.log(`Mock: ${call_count}, ${stderr_strings}`);
|
||||
|
|
|
@ -7,6 +7,8 @@ test('login retries success function', async () => {
|
|||
let stderr_strings: string[] = [];
|
||||
let call_count: number = -1;
|
||||
|
||||
// using spyOn() here isn't enough, as we alter the logic
|
||||
// so use `jest.fn()` here for the `Docker.getExecOutput`
|
||||
Docker.getExecOutput = jest.fn(async () => {
|
||||
call_count++;
|
||||
console.log(`Mock: ${call_count}, ${stderr_strings}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue