n8n: checked against a live instance; archived workflows left out
Inspect on a real n8n showed the workflow and run lists answer as the reader expects, with nothing empty. Workflows marked isArchived are no longer listed or counted. Test and INTEGRATIONS.md updated. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
386d77b351
commit
01fb5d6335
3 files changed
+11
-5
No files matched your search
@@ -51,6 +51,11 @@ describe("what n8n's API says", () => {
|
||||
assert.deepEqual(adapter.parseWorkflows(null), []);
|
||||
});
|
||||
|
||||
test("an archived workflow (n8n marks it isArchived) is left out", () => {
|
||||
const w = adapter.parseWorkflows({ data: [{ id: "a", name: "Live", active: true, isArchived: false }, { id: "b", name: "Put away", active: false, isArchived: true }] });
|
||||
assert.deepEqual(w, [{ id: "a", name: "Live", active: true }]);
|
||||
});
|
||||
|
||||
test("each workflow's last outcome is the newest finished run; a run still going is not an outcome; failures are counted for the last day", () => {
|
||||
const workflows = [{ id: "1", name: "A", active: true }, { id: "2", name: "B", active: true }, { id: "3", name: "C", active: false }];
|
||||
const runs = {
|
||||
|
||||
Reference in new issue
Block a user