mirror of
https://github.com/docker/login-action.git
synced 2025-04-22 14:46:37 +02:00
Fix tests
This commit is contained in:
parent
25aa6aa30c
commit
04f461cc60
4 changed files with 30 additions and 20 deletions
|
@ -19,11 +19,19 @@ describe('getCLI', () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe('getCLICmdOutput', () => {
|
||||
it('--version not empty', async () => {
|
||||
const cliCmdOutput = await aws.getCLICmdOutput(['--version']);
|
||||
console.log(`cliCmdOutput: ${cliCmdOutput}`);
|
||||
expect(cliCmdOutput).not.toEqual('');
|
||||
});
|
||||
});
|
||||
|
||||
describe('getCLIVersion', () => {
|
||||
it('valid', async () => {
|
||||
const cliVersion = await aws.getCLIVersion();
|
||||
console.log(`cliVersion: ${cliVersion}`);
|
||||
expect(semver.valid(cliVersion)).toBe(true);
|
||||
expect(semver.valid(cliVersion)).not.toBeNull();
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue