chore: remove unnecessary await

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2024-05-03 10:20:42 +02:00
parent ffa2fadd58
commit 4078ffc721
No known key found for this signature in database
GPG Key ID: ADE44D8C9D44FBE4
2 changed files with 7 additions and 7 deletions

View File

@ -60,7 +60,7 @@ afterEach(() => {
describe('resolveMetadata', () => {
it('matches', async () => {
const bake = new Bake();
await fs.writeFileSync(bake.getMetadataFilePath(), JSON.stringify(metadata));
fs.writeFileSync(bake.getMetadataFilePath(), JSON.stringify(metadata));
expect(bake.resolveMetadata()).toEqual(metadata as BakeMetadata);
});
});
@ -68,7 +68,7 @@ describe('resolveMetadata', () => {
describe('resolveRefs', () => {
it('matches', async () => {
const bake = new Bake();
await fs.writeFileSync(bake.getMetadataFilePath(), JSON.stringify(metadata));
fs.writeFileSync(bake.getMetadataFilePath(), JSON.stringify(metadata));
expect(bake.resolveRefs()).toEqual(['default/default/7frbdw1fmfozgtqavghowsepk', 'default/default/onic7g2axylf56rxetob7qruy']);
});
});

View File

@ -57,7 +57,7 @@ describe('resolveImageID', () => {
it('matches', async () => {
const imageID = 'sha256:bfb45ab72e46908183546477a08f8867fc40cebadd00af54b071b097aed127a9';
const build = new Build();
await fs.writeFileSync(build.getImageIDFilePath(), imageID);
fs.writeFileSync(build.getImageIDFilePath(), imageID);
expect(build.resolveImageID()).toEqual(imageID);
});
});
@ -65,7 +65,7 @@ describe('resolveImageID', () => {
describe('resolveMetadata', () => {
it('matches', async () => {
const build = new Build();
await fs.writeFileSync(build.getMetadataFilePath(), JSON.stringify(metadata));
fs.writeFileSync(build.getMetadataFilePath(), JSON.stringify(metadata));
expect(build.resolveMetadata()).toEqual(metadata);
});
});
@ -73,7 +73,7 @@ describe('resolveMetadata', () => {
describe('resolveRef', () => {
it('matches', async () => {
const build = new Build();
await fs.writeFileSync(build.getMetadataFilePath(), JSON.stringify(metadata));
fs.writeFileSync(build.getMetadataFilePath(), JSON.stringify(metadata));
expect(build.resolveRef()).toEqual('default/default/n6ibcp9b2pw108rrz7ywdznvo');
});
});
@ -81,7 +81,7 @@ describe('resolveRef', () => {
describe('resolveDigest', () => {
it('matches', async () => {
const build = new Build();
await fs.writeFileSync(build.getMetadataFilePath(), JSON.stringify(metadata));
fs.writeFileSync(build.getMetadataFilePath(), JSON.stringify(metadata));
expect(build.resolveDigest()).toEqual('sha256:b09b9482c72371486bb2c1d2c2a2633ed1d0b8389e12c8d52b9e052725c0c83c');
});
});
@ -127,7 +127,7 @@ describe('getProvenanceInput', () => {
''
],
])('given input %p', async (input: string, expected: string) => {
await setInput('provenance', input);
setInput('provenance', input);
expect(Build.getProvenanceInput('provenance')).toEqual(expected);
});
});