buildx: do not set version in constructor

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2023-01-30 20:08:54 +01:00
parent 5360816e7b
commit 32a260e6e5
2 changed files with 25 additions and 17 deletions

View File

@@ -107,12 +107,12 @@ describe('printVersion', () => {
});
});
describe('getVersion', () => {
describe('version', () => {
it('valid', async () => {
const buildx = new Buildx({
context: new Context()
});
expect(semver.valid(await buildx.version)).not.toBeNull();
expect(semver.valid(await buildx.version)).not.toBeUndefined();
});
});