mirror of
https://github.com/photoprism/photoprism.git
synced 2025-10-08 18:20:55 +08:00
Config: Add option to show filesystem usage in sidebar navigation #4266
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -347,7 +347,7 @@ describe("model/file", () => {
|
||||
UpdatedAt: "2012-07-08T14:45:39Z",
|
||||
};
|
||||
const file = new File(values);
|
||||
assert.equal(file.sizeInfo(), "7.8 KB");
|
||||
assert.equal(file.sizeInfo(), "8 KB");
|
||||
const values2 = {
|
||||
InstanceID: 5,
|
||||
UID: "ABC123",
|
||||
@@ -359,7 +359,7 @@ describe("model/file", () => {
|
||||
UpdatedAt: "2012-07-08T14:45:39Z",
|
||||
};
|
||||
const file2 = new File(values2);
|
||||
assert.equal(file2.sizeInfo(), "7638.9 MB");
|
||||
assert.equal(file2.sizeInfo(), "7.5 GB");
|
||||
const values3 = {
|
||||
InstanceID: 5,
|
||||
UID: "ABC123",
|
||||
@@ -373,7 +373,7 @@ describe("model/file", () => {
|
||||
UpdatedAt: "2012-07-08T14:45:39Z",
|
||||
};
|
||||
const file3 = new File(values3);
|
||||
assert.equal(file3.sizeInfo(), "500 × 800, 7638.9 MB");
|
||||
assert.equal(file3.sizeInfo(), "500 × 800, 7.5 GB");
|
||||
});
|
||||
|
||||
it("should like file", () => {
|
||||
|
Reference in New Issue
Block a user