test(core): Align test names with route names (no-changelog) (#9518)

This commit is contained in:
Danny Martini
2024-05-27 20:41:34 +02:00
committed by GitHub
parent 6ed9ef0b60
commit e07de837b9
2 changed files with 29 additions and 29 deletions

View File

@@ -359,7 +359,7 @@ describe('POST /workflows', () => {
});
});
describe('GET /workflows/:id', () => {
describe('GET /workflows/:workflowId', () => {
test('should return pin data', async () => {
const workflow = makeWorkflow({ withPinData: true });
const workflowCreationResponse = await authOwnerAgent.post('/workflows').send(workflow);
@@ -823,7 +823,7 @@ describe('GET /workflows', () => {
});
});
describe('PATCH /workflows/:id', () => {
describe('PATCH /workflows/:workflowId', () => {
test('should create workflow history version when licensed', async () => {
license.enable('feat:workflowHistory');
const workflow = await createWorkflow({}, owner);
@@ -997,7 +997,7 @@ describe('PATCH /workflows/:id', () => {
});
});
describe('POST /workflows/run', () => {
describe('POST /workflows/:workflowId/run', () => {
let sharingSpy: jest.SpyInstance;
let tamperingSpy: jest.SpyInstance;
let workflow: WorkflowEntity;
@@ -1028,7 +1028,7 @@ describe('POST /workflows/run', () => {
});
});
describe('DELETE /workflows/:id', () => {
describe('DELETE /workflows/:workflowId', () => {
test('deletes a workflow owned by the user', async () => {
const workflow = await createWorkflow({}, owner);