tests update

This commit is contained in:
Michael Kret 2024-11-13 13:08:53 +02:00
parent 85435c9e62
commit c32256c93d
3 changed files with 3 additions and 31 deletions

View file

@ -61,11 +61,6 @@ describe('Test AirtableV2, base => getMany', () => {
name: 'base 1',
permissionLevel: 'create',
},
pairedItem: [
{
item: 0,
},
],
},
{
json: {
@ -73,11 +68,6 @@ describe('Test AirtableV2, base => getMany', () => {
name: 'base 2',
permissionLevel: 'edit',
},
pairedItem: [
{
item: 0,
},
],
},
{
json: {
@ -85,11 +75,6 @@ describe('Test AirtableV2, base => getMany', () => {
name: 'base 3',
permissionLevel: 'create',
},
pairedItem: [
{
item: 0,
},
],
},
]);
});
@ -113,11 +98,6 @@ describe('Test AirtableV2, base => getMany', () => {
name: 'base 2',
permissionLevel: 'edit',
},
pairedItem: [
{
item: 0,
},
],
},
]);
});

View file

@ -110,11 +110,7 @@ describe('Test AirtableV2, search operation', () => {
expect(result).toHaveLength(2);
expect(result[0]).toEqual({
json: { id: 'recYYY', foo: 'foo 2', bar: 'bar 2' },
pairedItem: [
{
item: 0,
},
],
pairedItem: [],
});
});
@ -154,11 +150,7 @@ describe('Test AirtableV2, search operation', () => {
expect(result).toHaveLength(1);
expect(result[0]).toEqual({
json: { id: 'recYYY', foo: 'foo 2', bar: 'bar 2' },
pairedItem: [
{
item: 0,
},
],
pairedItem: [],
});
});
});

View file

@ -49,7 +49,7 @@ describe('Test PostgresV2, runQueries', () => {
expect(result).toBeDefined();
expect(result).toHaveLength(1);
expect(result).toEqual([{ json: { success: true }, pairedItem: [{ item: 0 }] }]);
expect(result).toEqual([{ json: { success: true }, pairedItem: undefined }]);
expect(dbMultiSpy).toHaveBeenCalledWith('SELECT * FROM table');
});
});