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 566c6c6

Browse files
authored
Merge pull request #5610 from ag-grid/ajt/fix-ag-charts-website-snapshots
Fix ag-charts-website-snapshots.
2 parents 5f8bd08 + cf8bbf8 commit 566c6c6

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

packages/ag-charts-website/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
"watch": true
123123
},
124124
"update": {
125-
"update": true
125+
"command": "npx vitest -u"
126126
}
127127
}
128128
},

packages/ag-charts-website/src/components/module-mappings/getModuleMappingsSnippet.test.ts

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ describe('getModuleMappingsSnippet', () => {
1414
});
1515

1616
expect(snippet).toMatchInlineSnapshot(`
17-
"import {\n ModuleRegistry,\n LineSeriesModule,\n } from 'ag-charts-community';\n\n ModuleRegistry.registerModules([\n LineSeriesModule,\n ]);"
17+
"import {
18+
ModuleRegistry,
19+
LineSeriesModule,
20+
} from 'ag-charts-community';
21+
22+
ModuleRegistry.registerModules([LineSeriesModule]);"
1823
`);
1924
});
2025

@@ -49,7 +54,18 @@ describe('getModuleMappingsSnippet', () => {
4954
});
5055

5156
expect(snippet).toMatchInlineSnapshot(`
52-
"import {\n ModuleRegistry,\n AllCommunityModule,\n } from 'ag-charts-community';\n import {\n AllEnterpriseModules,\n } from 'ag-charts-enterprise';\n\n ModuleRegistry.registerModules([\n ...AllCommunityModule,\n ...AllEnterpriseModules,\n ]);"
57+
"import {
58+
ModuleRegistry,
59+
AllCommunityModule,
60+
} from 'ag-charts-community';
61+
import {
62+
AllEnterpriseModules,
63+
} from 'ag-charts-enterprise';
64+
65+
ModuleRegistry.registerModules([
66+
AllCommunityModule,
67+
AllEnterpriseModules,
68+
]);"
5369
`);
5470
});
5571

@@ -67,7 +83,7 @@ describe('getModuleMappingsSnippet', () => {
6783
AllEnterpriseModule,
6884
} from 'ag-charts-enterprise';
6985
70-
ModuleRegistry.registerModules(AllEnterpriseModule);"
86+
ModuleRegistry.registerModules([AllEnterpriseModule]);"
7187
`);
7288
});
7389
});

0 commit comments

Comments
 (0)