We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1241938 commit 2ee70b5Copy full SHA for 2ee70b5
apps/http-sample/src/cats/cats.service.spec.ts
@@ -136,15 +136,17 @@ describe('CatsService', () => {
136
breed: 'Russian',
137
};
138
139
- const response: AxiosResponse<any> | any = {
+ const response: AxiosResponse<any> = {
140
data,
141
headers: {},
142
config: { url: 'http://localhost:3000/mockUrl' },
143
status: 201,
144
statusText: 'OK',
145
146
147
- jest.spyOn(httpService, 'post').mockImplementation(() => of(response));
+ jest
148
+ .spyOn(httpService, 'post')
149
+ .mockImplementation(() => of(response as any));
150
151
service.create(createCatDto).subscribe({
152
next: (val) => {
0 commit comments