Merge branch 'main' into cliente/tagumedica
This commit is contained in:
commit
72b3cd1d43
1 file changed
+3
-4
@@ -79,9 +79,8 @@ describe('SapDbService', () => {
|
||||
});
|
||||
|
||||
it('lista las consultas disponibles', async () => {
|
||||
expect(await make({ query } as SapDbAdapter).available(user)).toEqual([
|
||||
{ name: 'ping', title: expect.any(String) },
|
||||
{ name: 'batch-stock', title: expect.any(String) },
|
||||
]);
|
||||
// las de la rama de un cliente se suman a las del base: se comprueba que estén las del base
|
||||
const names = (await make({ query } as SapDbAdapter).available(user)).map((q) => q.name);
|
||||
expect(names).toEqual(expect.arrayContaining(['ping', 'batch-stock']));
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user