UX: Update expected counts in config.values.count test #3164

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2023-02-03 08:36:50 +01:00
parent 52a220044d
commit 051fe96869

View file

@ -263,16 +263,17 @@ describe("common/config", () => {
myConfig.onCount("add.review", {
count: 1,
});
assert.equal(myConfig.values.count.all, 135);
assert.equal(myConfig.values.count.review, 23);
assert.equal(myConfig.values.count.private, 0);
myConfig.onCount("add.private", {
count: 3,
});
assert.equal(myConfig.values.count.private, 3);
assert.equal(myConfig.values.count.all, 136);
assert.equal(myConfig.values.count.all, 135);
myConfig.onCount("add.photos", {
count: 4,
});
assert.equal(myConfig.values.count.all, 140);
assert.equal(myConfig.values.count.all, 139);
});
});