Trim tags and flavor inputs

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2021-10-22 13:50:28 +02:00
parent 110426b173
commit b69dce7fed
4 changed files with 55 additions and 26 deletions

View File

@ -152,6 +152,19 @@ describe('transform', () => {
} as Flavor,
false
],
[
[
`prefix= `,
],
{
latest: "auto",
prefix: "",
prefixLatest: false,
suffix: "",
suffixLatest: false,
} as Flavor,
false
]
])('given %p attributes ', async (inputs: string[], expected: Flavor, invalid: boolean) => {
try {
const flavor = Transform(inputs);