I have this kind of tests in most of the services I test and I'm not sure if I should reuse them by extending some base test class or by doing something else.
it('should call HttpClient.get method', () => {
// Arrange
// Act
callServiceWithDefaultArguments();
// Assert
expect(httpClient.get).toHaveBeenCalled();
});
or like this test where I test if it throws an exception with null argument
it('with null id should throw an exception', () => {
// Arrange
const exceptionMessage = new RegExp(ExceptionConstants.NULL_OR_UNDEFINED);
id = null;
// Act
// Assert
expect(() => callServiceWithDefaultArguments()).toThrowError(exceptionMessage);
});