From d13f6277275db941430f68998b19cc2593fa72cf Mon Sep 17 00:00:00 2001 From: Edwin Joassart Date: Thu, 13 Jun 2024 14:00:12 +0200 Subject: [PATCH] fix styling --- tests/tester.ts | 5 ++--- tests/utils.spec.ts | 21 ++++++++------------- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/tests/tester.ts b/tests/tester.ts index 66c7be7d..fc2db587 100644 --- a/tests/tester.ts +++ b/tests/tester.ts @@ -137,9 +137,8 @@ export async function testImageNoIt( assert(canCreateSparseReadStream); const sourceSparseStream = await innerSource.createSparseReadStream(); - const sourceSparseStreamBuffer = await sparseStreamToBuffer( - sourceSparseStream, - ); + const sourceSparseStreamBuffer = + await sparseStreamToBuffer(sourceSparseStream); expect(sourceSparseStreamBuffer.length).to.be.at.most(compareToData.length); expect(sourceSparseStreamBuffer).to.deep.equal( compareToData.slice(0, sourceSparseStreamBuffer.length), diff --git a/tests/utils.spec.ts b/tests/utils.spec.ts index 795b92d7..fdc0a9ec 100644 --- a/tests/utils.spec.ts +++ b/tests/utils.spec.ts @@ -66,14 +66,11 @@ describe('utils', function () { describe('BalenaS3SourceBase', function () { describe('isESRVersion', function () { it('should return false for non-ESR versions following the original scheme', function () { - [ - '2.7.8.dev', - '2.7.8.prod', - '2.80.3.0.dev', - '2.80.3.0.prod', - ].forEach((v) => { - expect(BalenaS3SourceBase.isESRVersion(v)).to.be.false; - }); + ['2.7.8.dev', '2.7.8.prod', '2.80.3.0.dev', '2.80.3.0.prod'].forEach( + (v) => { + expect(BalenaS3SourceBase.isESRVersion(v)).to.be.false; + }, + ); }); it('should return false for unified non-ESR versions', function () { @@ -83,11 +80,9 @@ describe('utils', function () { }); it('should return true for ESR versions following the original scheme', function () { - ['2020.04.0.prod', '2021.10.1.dev', '2021.10.1.prod'].forEach( - (v) => { - expect(BalenaS3SourceBase.isESRVersion(v)).to.be.true; - }, - ); + ['2020.04.0.prod', '2021.10.1.dev', '2021.10.1.prod'].forEach((v) => { + expect(BalenaS3SourceBase.isESRVersion(v)).to.be.true; + }); }); it('should return true for unified ESR versions', function () {