mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 14:16:12 +00:00
fix(gki): draw the index chart in a chart token
The custom metric chart drew its line in --primary, which put the index in the action colour right under the ketone series drawn in a chart token. Give the chart an optional series colour, default primary so a custom metric looks as before, and draw the index in --chart-4.
This commit is contained in:
1 parent
35b4e75a53
commit
8aa8379861
4 files changed
+78
-12
No files matched your search
@@ -88,7 +88,10 @@ describe("DELETE /api/cycle/feed-subscription", () => {
|
||||
m.findMany.mockResolvedValue([OLD, SUCCESSOR]);
|
||||
|
||||
await (DELETE as unknown as () => Promise<Response>)();
|
||||
expect(m.audit.mock.calls.map((c) => c[1].details.feedId)).toEqual([
|
||||
const calls = m.audit.mock.calls as unknown as Array<
|
||||
[string, { details: { feedId: string } }]
|
||||
>;
|
||||
expect(calls.map((c) => c[1].details.feedId)).toEqual([
|
||||
OLD.id,
|
||||
SUCCESSOR.id,
|
||||
]);
|
||||
|
||||
Reference in new issue
Block a user