WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 958baf8

Browse files
committed
AG-15405 Add test for aglint/validate-module-registrion flashOnUpdate
1 parent ee5e38d commit 958baf8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

libraries/ag-charts-eslint-rules/src/lint-validate-module-registration.data.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,14 @@ const candlestickBothAxes = {
251251
},
252252
};
253253
AgCharts.create(candlestickBothAxes);
254+
255+
// =============================================================================
256+
// TEST CASE 16: flashOnUpdate requires FlashOnUpdateModule
257+
// =============================================================================
258+
ModuleRegistry.registerModules([LineSeriesModule, CategoryAxisModule, NumberAxisModule, LegendModule]);
259+
const flashOnUpdateMissing = {
260+
series: [{ type: 'line', xKey: 'x', yKey: 'y' }],
261+
axes: { x: { type: 'category' }, y: { type: 'number' } },
262+
flashOnUpdate: { enabled: true },
263+
};
264+
AgCharts.create(flashOnUpdateMissing);

0 commit comments

Comments
 (0)