Skip to content

Commit affda76

Browse files
committed
fix test
1 parent d53f20d commit affda76

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/platform/plugins/private/vis_types/vega/public/vega_visualization.test.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,6 @@ describe('VegaVisualizations', () => {
8484
});
8585

8686
test('should show vegalite graph and update on resize (may fail in dev env)', async () => {
87-
const mockedConsoleLog = jest.spyOn(console, 'log'); // mocked console.log to avoid messages in the console when running tests
88-
mockedConsoleLog.mockImplementation(() => {}); // comment this line when console logging for debugging comment this line
89-
9087
let vegaVis: InstanceType<VegaVisType>;
9188
try {
9289
vegaVis = new VegaVisualization(domNode, jest.fn());
@@ -117,9 +114,6 @@ describe('VegaVisualizations', () => {
117114
} finally {
118115
vegaVis.destroy();
119116
}
120-
// eslint-disable-next-line no-console
121-
expect(console.log).toBeCalledTimes(2);
122-
mockedConsoleLog.mockRestore();
123117
});
124118

125119
test('should show vega graph (may fail in dev env)', async () => {

0 commit comments

Comments
 (0)