mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
ci: Expand ESLint to tests in BE packages (no-changelog) (#6147)
* 🔧 Adjust base ESLint config * 🔧 Adjust `lint` and `lintfix` in `nodes-base` * 🔧 Include `test` and `utils` in `nodes-base` * 📘 Convert JS tests to TS * 👕 Apply lintfixes
This commit is contained in:
@@ -309,7 +309,7 @@ describe('GET /workflows/:id', () => {
|
||||
test('should fail due to invalid API Key', testWithAPIKey('get', '/workflows/2', 'abcXYZ'));
|
||||
|
||||
test('should fail due to non-existing workflow', async () => {
|
||||
const response = await authOwnerAgent.get(`/workflows/2`);
|
||||
const response = await authOwnerAgent.get('/workflows/2');
|
||||
expect(response.statusCode).toBe(404);
|
||||
});
|
||||
|
||||
@@ -375,7 +375,7 @@ describe('DELETE /workflows/:id', () => {
|
||||
test('should fail due to invalid API Key', testWithAPIKey('delete', '/workflows/2', 'abcXYZ'));
|
||||
|
||||
test('should fail due to non-existing workflow', async () => {
|
||||
const response = await authOwnerAgent.delete(`/workflows/2`);
|
||||
const response = await authOwnerAgent.delete('/workflows/2');
|
||||
expect(response.statusCode).toBe(404);
|
||||
});
|
||||
|
||||
@@ -447,7 +447,7 @@ describe('POST /workflows/:id/activate', () => {
|
||||
);
|
||||
|
||||
test('should fail due to non-existing workflow', async () => {
|
||||
const response = await authOwnerAgent.post(`/workflows/2/activate`);
|
||||
const response = await authOwnerAgent.post('/workflows/2/activate');
|
||||
expect(response.statusCode).toBe(404);
|
||||
});
|
||||
|
||||
@@ -549,7 +549,7 @@ describe('POST /workflows/:id/deactivate', () => {
|
||||
);
|
||||
|
||||
test('should fail due to non-existing workflow', async () => {
|
||||
const response = await authOwnerAgent.post(`/workflows/2/deactivate`);
|
||||
const response = await authOwnerAgent.post('/workflows/2/deactivate');
|
||||
expect(response.statusCode).toBe(404);
|
||||
});
|
||||
|
||||
@@ -709,7 +709,7 @@ describe('PUT /workflows/:id', () => {
|
||||
test('should fail due to invalid API Key', testWithAPIKey('put', '/workflows/1', 'abcXYZ'));
|
||||
|
||||
test('should fail due to non-existing workflow', async () => {
|
||||
const response = await authOwnerAgent.put(`/workflows/1`).send({
|
||||
const response = await authOwnerAgent.put('/workflows/1').send({
|
||||
name: 'testing',
|
||||
nodes: [
|
||||
{
|
||||
@@ -737,7 +737,7 @@ describe('PUT /workflows/:id', () => {
|
||||
});
|
||||
|
||||
test('should fail due to invalid body', async () => {
|
||||
const response = await authOwnerAgent.put(`/workflows/1`).send({
|
||||
const response = await authOwnerAgent.put('/workflows/1').send({
|
||||
nodes: [
|
||||
{
|
||||
id: 'uuid-1234',
|
||||
|
||||
Reference in New Issue
Block a user