mirror of
https://github.com/docker/metadata-action.git
synced 2025-06-23 19:27:58 +02:00
chore: update dev dependencies and workflow
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import {describe, expect, test} from '@jest/globals';
|
||||
import {Flavor, Transform} from '../src/flavor';
|
||||
|
||||
describe('transform', () => {
|
||||
@ -165,7 +166,7 @@ describe('transform', () => {
|
||||
} as Flavor,
|
||||
false
|
||||
]
|
||||
])('given %p attributes ', async (inputs: string[], expected: Flavor, invalid: boolean) => {
|
||||
])('given %p attributes', async (inputs: string[], expected: Flavor, invalid: boolean) => {
|
||||
try {
|
||||
const flavor = Transform(inputs);
|
||||
expect(flavor).toEqual(expected);
|
||||
@ -173,6 +174,7 @@ describe('transform', () => {
|
||||
if (!invalid) {
|
||||
console.error(err);
|
||||
}
|
||||
// eslint-disable-next-line jest/no-conditional-expect
|
||||
expect(true).toBe(invalid);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user