mirror of
https://github.com/immich-app/immich.git
synced 2026-03-27 12:20:52 +03:00
@@ -28,7 +28,7 @@ describe(ServerService.name, () => {
|
||||
diskUseRaw: 300,
|
||||
});
|
||||
|
||||
expect(mocks.storage.checkDiskUsage).toHaveBeenCalledWith('upload/library');
|
||||
expect(mocks.storage.checkDiskUsage).toHaveBeenCalledWith(expect.stringContaining('upload/library'));
|
||||
});
|
||||
|
||||
it('should return the disk space as KiB', async () => {
|
||||
@@ -44,7 +44,7 @@ describe(ServerService.name, () => {
|
||||
diskUseRaw: 300_000,
|
||||
});
|
||||
|
||||
expect(mocks.storage.checkDiskUsage).toHaveBeenCalledWith('upload/library');
|
||||
expect(mocks.storage.checkDiskUsage).toHaveBeenCalledWith(expect.stringContaining('upload/library'));
|
||||
});
|
||||
|
||||
it('should return the disk space as MiB', async () => {
|
||||
@@ -60,7 +60,7 @@ describe(ServerService.name, () => {
|
||||
diskUseRaw: 300_000_000,
|
||||
});
|
||||
|
||||
expect(mocks.storage.checkDiskUsage).toHaveBeenCalledWith('upload/library');
|
||||
expect(mocks.storage.checkDiskUsage).toHaveBeenCalledWith(expect.stringContaining('upload/library'));
|
||||
});
|
||||
|
||||
it('should return the disk space as GiB', async () => {
|
||||
@@ -80,7 +80,7 @@ describe(ServerService.name, () => {
|
||||
diskUseRaw: 300_000_000_000,
|
||||
});
|
||||
|
||||
expect(mocks.storage.checkDiskUsage).toHaveBeenCalledWith('upload/library');
|
||||
expect(mocks.storage.checkDiskUsage).toHaveBeenCalledWith(expect.stringContaining('upload/library'));
|
||||
});
|
||||
|
||||
it('should return the disk space as TiB', async () => {
|
||||
@@ -100,7 +100,7 @@ describe(ServerService.name, () => {
|
||||
diskUseRaw: 300_000_000_000_000,
|
||||
});
|
||||
|
||||
expect(mocks.storage.checkDiskUsage).toHaveBeenCalledWith('upload/library');
|
||||
expect(mocks.storage.checkDiskUsage).toHaveBeenCalledWith(expect.stringContaining('upload/library'));
|
||||
});
|
||||
|
||||
it('should return the disk space as PiB', async () => {
|
||||
@@ -120,7 +120,7 @@ describe(ServerService.name, () => {
|
||||
diskUseRaw: 300_000_000_000_000_000,
|
||||
});
|
||||
|
||||
expect(mocks.storage.checkDiskUsage).toHaveBeenCalledWith('upload/library');
|
||||
expect(mocks.storage.checkDiskUsage).toHaveBeenCalledWith(expect.stringContaining('upload/library'));
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user