Skip to content

Commit

Permalink
jest test
Browse files Browse the repository at this point in the history
  • Loading branch information
zijianhuang committed Nov 20, 2024
1 parent e72dc6d commit 77bbec3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions HeroesDemo/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
preset: 'jest-preset-angular',
setupFilesAfterEnv: ['<rootDir>/setup-jest.ts'],
globalSetup: 'jest-preset-angular/global-setup',
};
6 changes: 6 additions & 0 deletions HeroesDemo/src/clientapi/WebApiNG2ClientAuto.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1184,6 +1184,9 @@ describe('SuperDemo API', () => {
}
);

/**
* Returned is blob
*/
it('getBadRequest', (done) => {
service.getBadRequest().subscribe(
data => {
Expand All @@ -1201,6 +1204,9 @@ describe('SuperDemo API', () => {
}
);

/**
* Returned is text
*/
it('getBadRequest2', (done) => {
service.getBadRequest2().subscribe(
data => {
Expand Down

0 comments on commit 77bbec3

Please sign in to comment.