message: refactor(core): split RuntimeError unit test up
  split the single RuntimeError utils test testing about the correct
  formatting of errors in multiple separate unit tests (for better
  granularity and clearness)
  PR Close
diff: import {RuntimeError, RuntimeErrorCode} from '../src/errors';
  describe('RuntimeError utils', () => {
  - it('should format the error message correctly', () => {
  - // Error with a guide, but without an error message.
  - let errorInstance = new RuntimeError<RuntimeErrorCode>(RuntimeErrorCode.EXPORT_NOT_FOUND, '');
  - expect(errorInstance.toString())
  - .toBe('Error: NG0301. Find more at https://angular.io/errors/NG0301');
  -
  - // Error without a guide and an error message.
  - errorInstance = new RuntimeError(RuntimeErrorCode.TEMPLATE_STRUCTURE_ERROR, '');
  - expect(errorInstance.toString()).toBe('Error: NG0305');
  -
  - // Error without a guide, but with an error message.
  - errorInstance =
  - new RuntimeError(RuntimeErrorCode.TEMPLATE_STRUCTURE_ERROR, 'Some error message');
  - expect(errorInstance.toString()).toBe('Error: NG0305: Some error message');
  -
  - // Error with both a guide and an error message.
  - errorInstance = new RuntimeError(RuntimeErrorCode.EXPORT_NOT_FOUND, 'Some error message');
  - expect(errorInstance.toString())
  + it('should correctly format an error without an error message', () => {
  + const error = new RuntimeError<RuntimeErrorCode>(RuntimeErrorCode.EXPORT_NOT_FOUND, '');
  + expect(error.toString()).toBe('Error: NG0301. Find more at https://angular.io/errors/NG0301');
  + });
  +
  + it('should correctly format an error without an error message not aio guide', () => {
  + const error = new RuntimeError(RuntimeErrorCode.TEMPLATE_STRUCTURE_ERROR, '');
  + expect(error.toString()).toBe('Error: NG0305');
  + });
  +
  + it('should correctly format an error with an error message but without an aio guide', () => {
  + const error = new RuntimeError(RuntimeErrorCode.TEMPLATE_STRUCTURE_ERROR, 'Some error message');
  + expect(error.toString()).toBe('Error: NG0305: Some error message');
  + });
  +
  + it('should correctly format an error with both an error message and an aio guide', () => {
  + const error = new RuntimeError(RuntimeErrorCode.EXPORT_NOT_FOUND, 'Some error message');
  + expect(error.toString())
  .toBe('Error: NG0301: Some error message. Find more at https://angular.io/errors/NG0301');
  });
  