mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-15 23:12:04 +00:00
Merge branch 'fix/v1437-jobs' into release/v1.43.7
This commit is contained in:
commit
ea933b91cc
59 files changed
+2340
-855
No files matched your search
@@ -531,6 +531,33 @@ describe("<AppleHealthCard> — per-type arrivals (#1173)", () => {
|
||||
expect(out).toContain("Not received yet");
|
||||
});
|
||||
|
||||
// #1247 — weight entered here goes to the phone and never arrives back.
|
||||
it("names when a written-back type was last entered here", () => {
|
||||
const received = html({
|
||||
...base,
|
||||
type: "WEIGHT",
|
||||
lastReceivedAt: hoursAgo(400),
|
||||
lastTrigger: "background",
|
||||
lastNewSampleAt: hoursAgo(400),
|
||||
lastEnteredHereAt: hoursAgo(48),
|
||||
});
|
||||
expect(received).toContain("Last entered here 2 d ago");
|
||||
const never = html({
|
||||
...base,
|
||||
type: "WEIGHT",
|
||||
lastReceivedAt: null,
|
||||
lastEnteredHereAt: hoursAgo(48),
|
||||
});
|
||||
expect(never).toContain("Not received yet");
|
||||
expect(never).toContain("Last entered here 2 d ago");
|
||||
const noLedger = html({
|
||||
...base,
|
||||
type: "WEIGHT",
|
||||
lastEnteredHereAt: hoursAgo(48),
|
||||
});
|
||||
expect(noLedger).toContain('data-state="entered-here"');
|
||||
});
|
||||
|
||||
it("renders nothing when the server sent no arrival facts", () => {
|
||||
expect(html(base)).toBe("");
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user