From 9bb418f621c67f0e44a833ad390a4a5d29cdfd71 Mon Sep 17 00:00:00 2001 From: Martin Forstner Date: Sat, 23 Jan 2021 11:17:33 +0100 Subject: [PATCH] fix: result saved not resultByUrl --- .idea/workspace.xml | 5 +++-- bin/a11y-sitechecker.ts | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index bb5050d..1836b0b 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,7 +2,8 @@ - + + diff --git a/bin/a11y-sitechecker.ts b/bin/a11y-sitechecker.ts index 4107e99..95711c2 100644 --- a/bin/a11y-sitechecker.ts +++ b/bin/a11y-sitechecker.ts @@ -85,7 +85,7 @@ export async function next(config: Config, axeSpecs: Spec, url: string): Promise result.url = url; mergeResults(report, result); if (config.json) { - writeToJsonFile(JSON.stringify(report, null, 2), config.resultsPath); + writeToJsonFile(JSON.stringify(result, null, 2), config.resultsPath); } else { log( prettyjson.render(report, {