From cf24aa930e254ac07f4b2dfdb2f1b8910ec9adf4 Mon Sep 17 00:00:00 2001 From: stockiNail Date: Mon, 16 May 2022 12:19:47 +0200 Subject: [PATCH] Change tests configuration using new 'common' plugin option --- test/fixtures/line/labelsScriptableOptions.js | 6 ++++-- test/fixtures/line/scriptableOptions.js | 6 ++++-- test/fixtures/polygon/hexagonWithPoints.js | 4 +++- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/test/fixtures/line/labelsScriptableOptions.js b/test/fixtures/line/labelsScriptableOptions.js index e7e671f60..bc3a3b283 100644 --- a/test/fixtures/line/labelsScriptableOptions.js +++ b/test/fixtures/line/labelsScriptableOptions.js @@ -16,8 +16,10 @@ module.exports = { }, plugins: { annotation: { - drawTime() { - return 'afterDatasetsDraw'; + common: { + drawTime() { + return 'afterDatasetsDraw'; + } }, annotations: { auto1: { diff --git a/test/fixtures/line/scriptableOptions.js b/test/fixtures/line/scriptableOptions.js index 48405a8d8..8b433fce1 100644 --- a/test/fixtures/line/scriptableOptions.js +++ b/test/fixtures/line/scriptableOptions.js @@ -16,8 +16,10 @@ module.exports = { }, plugins: { annotation: { - drawTime() { - return 'afterDatasetsDraw'; + common: { + drawTime() { + return 'afterDatasetsDraw'; + } }, annotations: { auto1: { diff --git a/test/fixtures/polygon/hexagonWithPoints.js b/test/fixtures/polygon/hexagonWithPoints.js index 04dbf6b43..06f06756b 100644 --- a/test/fixtures/polygon/hexagonWithPoints.js +++ b/test/fixtures/polygon/hexagonWithPoints.js @@ -18,7 +18,9 @@ module.exports = { plugins: { legend: false, annotation: { - drawTime: 'afterDraw', + common: { + drawTime: 'afterDraw' + }, annotations: { octagon: { type: 'polygon',