feat: Convert errorCodes using markdown

This commit is contained in:
Joachim Van Herwegen
2021-07-02 10:51:56 +02:00
parent 6cf539c171
commit f2f967ff8a
16 changed files with 259 additions and 37 deletions

View File

@@ -22,6 +22,8 @@ describe('A BaseIdentifierStrategy', (): void => {
it('errors when attempting to get the parent of an unsupported identifier.', async(): Promise<void> => {
expect((): any => strategy.getParentContainer({ path: '/unsupported' }))
.toThrow('The identifier /unsupported is outside the configured identifier space.');
expect((): any => strategy.getParentContainer({ path: '/unsupported' }))
.toThrow(expect.objectContaining({ options: { errorCode: 'E0001', details: { path: '/unsupported' }}}));
});
it('errors when attempting to get the parent of a root container.', async(): Promise<void> => {