Skip to content

Commit

Permalink
fix: add pre-allocated space of drive to current usage
Browse files Browse the repository at this point in the history
fixes #882
  • Loading branch information
MauriceNino committed Jan 7, 2024
1 parent 8343c78 commit 7f7050a
Show file tree
Hide file tree
Showing 4 changed files with 383 additions and 31 deletions.
8 changes: 8 additions & 0 deletions apps/server/__TESTS__/dynamic-info.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
TEST_CASE_20,
TEST_CASE_21,
TEST_CASE_22,
TEST_CASE_23,
TestCase,
} from './test-cases';

Expand Down Expand Up @@ -90,5 +91,12 @@ describe('Dynamic Info', () => {
).getMappedLayout();
expect(output).to.deep.equal(TEST_CASE_22.output);
});
it('Test Case 23', () => {
const output = new DynamicStorageMapper(
false,
...toStorageInp(TEST_CASE_23)
).getMappedLayout();
expect(output).to.deep.equal(TEST_CASE_23.output);
});
});
});
5 changes: 5 additions & 0 deletions apps/server/__TESTS__/static-info.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
TEST_CASE_20,
TEST_CASE_21,
TEST_CASE_22,
TEST_CASE_23,
TestCase,
} from './test-cases';

Expand Down Expand Up @@ -64,5 +65,9 @@ describe('Static Info', () => {
const output = mapToStorageLayout(false, ...toStorageInp(TEST_CASE_22));
expect(output).to.deep.equal(TEST_CASE_22.layout);
});
it('Test Case 23', () => {
const output = mapToStorageLayout(false, ...toStorageInp(TEST_CASE_23));
expect(output).to.deep.equal(TEST_CASE_23.layout);
});
});
});

0 comments on commit 7f7050a

Please sign in to comment.