Add unit tests and e2e tests

This commit is contained in:
Maxim Lobanov 2021-03-08 18:34:14 +03:00
parent 1d25bcb6a7
commit 330fe63577
17 changed files with 2252 additions and 298 deletions

View file

@ -33,11 +33,7 @@ describe('gpg tests', () => {
expect(keyId).toBeNull();
expect(exec.exec).toHaveBeenCalledWith(
'gpg',
expect.anything(),
expect.anything()
);
expect(exec.exec).toHaveBeenCalledWith('gpg', expect.anything(), expect.anything());
});
});
@ -46,11 +42,7 @@ describe('gpg tests', () => {
const keyId = 'asdfhjkl';
await gpg.deleteKey(keyId);
expect(exec.exec).toHaveBeenCalledWith(
'gpg',
expect.anything(),
expect.anything()
);
expect(exec.exec).toHaveBeenCalledWith('gpg', expect.anything(), expect.anything());
});
});
});