Skip to content

Commit

Permalink
added more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed Aug 24, 2021
1 parent d1e7a4e commit 17a63a6
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,22 @@ describe('successful migrations', () => {
},
});
});

test('skip transformation for defult space scenario', () => {
const migration800 = getMigrations()['8.0.0'];
const taskInstance = getMockData({
taskType: 'alerting:123456',
params: JSON.stringify({ spaceId: 'default', alertId: '123456' }),
});

expect(migration800(taskInstance, migrationContext)).toEqual({
...taskInstance,
attributes: {
...taskInstance.attributes,
params: '{"spaceId":"default","alertId":"123456"}',
},
});
});
});
});

Expand Down

0 comments on commit 17a63a6

Please sign in to comment.