1
0
Fork 0
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:
Fedor Dikarev 2025-01-23 16:51:59 +01:00
parent fdf655e1ab
commit c4d11d0a1e
4 changed files with 17 additions and 14 deletions

View file

@ -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}`);

View file

@ -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}`);