test: fix test for entity vault table

Signed-off-by: Ilya Katlinski <ilya.katlinsky@gmail.com>
This commit is contained in:
Ilya Katlinski
2023-09-10 07:31:55 +02:00
parent 1bdcf6bb7a
commit f840e5ca3f
@@ -118,7 +118,9 @@ describe('EntityVaultTable', () => {
expect(await rendered.findAllByText(/secret::two/)).toBeDefined();
expect(listSecretsSpy).toHaveBeenCalledTimes(1);
expect(listSecretsSpy).toHaveBeenCalledWith('test/success', undefined);
expect(listSecretsSpy).toHaveBeenCalledWith('test/success', {
secretEngine: undefined,
});
});
it('should render secrets with custom engine', async () => {
@@ -133,7 +135,9 @@ describe('EntityVaultTable', () => {
expect(await rendered.findAllByText(/secret::two/)).toBeDefined();
expect(listSecretsSpy).toHaveBeenCalledTimes(1);
expect(listSecretsSpy).toHaveBeenCalledWith('test/success', 'kv');
expect(listSecretsSpy).toHaveBeenCalledWith('test/success', {
secretEngine: 'kv',
});
});
it('should render no secrets found', async () => {