mirror of
https://github.com/immich-app/immich.git
synced 2025-12-17 01:11:13 +03:00
feat(web): wasm justified layout, sync edition (#23194)
* the invisible wasm use npm version * deterministic tests * add todo * linting * bump library, add helpers * use target height for unfilled rows * update tests
This commit is contained in:
@@ -82,15 +82,15 @@ describe('TimelineManager', () => {
|
||||
|
||||
expect(plainMonths).toEqual(
|
||||
expect.arrayContaining([
|
||||
expect.objectContaining({ year: 2024, month: 3, height: 165.5 }),
|
||||
expect.objectContaining({ year: 2024, month: 2, height: 11_996 }),
|
||||
expect.objectContaining({ year: 2024, month: 3, height: 283 }),
|
||||
expect.objectContaining({ year: 2024, month: 2, height: 7711 }),
|
||||
expect.objectContaining({ year: 2024, month: 1, height: 286 }),
|
||||
]),
|
||||
);
|
||||
});
|
||||
|
||||
it('calculates timeline height', () => {
|
||||
expect(timelineManager.totalViewerHeight).toBe(12_507.5);
|
||||
expect(timelineManager.totalViewerHeight).toBe(8340);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user