Skip to content

Commit

Permalink
fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
aethernet committed Jun 13, 2024
1 parent 0bafb3e commit d13f627
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
5 changes: 2 additions & 3 deletions tests/tester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
21 changes: 8 additions & 13 deletions tests/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand All @@ -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 () {
Expand Down

0 comments on commit d13f627

Please sign in to comment.