diff --git a/HeroesDemo/jest.config.js b/HeroesDemo/jest.config.js new file mode 100644 index 00000000..70e3440a --- /dev/null +++ b/HeroesDemo/jest.config.js @@ -0,0 +1,5 @@ +module.exports = { + preset: 'jest-preset-angular', + setupFilesAfterEnv: ['/setup-jest.ts'], + globalSetup: 'jest-preset-angular/global-setup', +}; \ No newline at end of file diff --git a/HeroesDemo/src/clientapi/WebApiNG2ClientAuto.spec.ts b/HeroesDemo/src/clientapi/WebApiNG2ClientAuto.spec.ts index 31beddf0..833cca4d 100644 --- a/HeroesDemo/src/clientapi/WebApiNG2ClientAuto.spec.ts +++ b/HeroesDemo/src/clientapi/WebApiNG2ClientAuto.spec.ts @@ -1184,6 +1184,9 @@ describe('SuperDemo API', () => { } ); + /** + * Returned is blob + */ it('getBadRequest', (done) => { service.getBadRequest().subscribe( data => { @@ -1201,6 +1204,9 @@ describe('SuperDemo API', () => { } ); + /** + * Returned is text + */ it('getBadRequest2', (done) => { service.getBadRequest2().subscribe( data => {