Skip to content
Snippets Groups Projects

feat(plugins): data overlays (MIN-222)

Merged mateusz-winiarczyk requested to merge MIN-222-data-overlays into development
3 unresolved threads
8 files
+ 278
14
Compare changes
  • Side-by-side
  • Inline
Files
8
@@ -32,6 +32,8 @@ describe('addDataOverlay', () => {
jest.clearAllMocks();
});
const getStateSpy = jest.spyOn(store, 'getState');
const overlay = {
name: 'Mock Overlay',
description: 'Mock Description',
@@ -52,8 +54,6 @@ describe('addDataOverlay', () => {
.onPost(apiPath.createOverlay(projectFixture.projectId))
.reply(HttpStatusCode.Ok, createdOverlayFixture);
const getStateSpy = jest.spyOn(store, 'getState');
getStateSpy.mockImplementation(() => MOCK_STATE as RootState);
await addDataOverlay(overlay);
@@ -69,8 +69,6 @@ describe('addDataOverlay', () => {
});
it('should throw error when project id is not found', async () => {
const getStateSpy = jest.spyOn(store, 'getState');
getStateSpy.mockImplementation(
() =>
({
@@ -88,8 +86,6 @@ describe('addDataOverlay', () => {
});
it('should throw error when overlay name is not provided', async () => {
const getStateSpy = jest.spyOn(store, 'getState');
getStateSpy.mockImplementation(() => MOCK_STATE as RootState);
const overlayWithoutName = {
@@ -103,8 +99,6 @@ describe('addDataOverlay', () => {
});
it('should add overlay with default values when optional parameters are not provided', async () => {
const getStateSpy = jest.spyOn(store, 'getState');
getStateSpy.mockImplementation(() => MOCK_STATE as RootState);
const overlayWithoutDefaultValues = {
Loading