Commit 50c1b3c322b9825f5a2214b67b54170ec2788fb5
1 parent
7e21343c
Exists in
master
and in
30 other branches
Add method to comment service mock
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/spec/mocks.ts
| @@ -75,7 +75,7 @@ export var mocks = { | @@ -75,7 +75,7 @@ export var mocks = { | ||
| 75 | }, | 75 | }, |
| 76 | commentService: { | 76 | commentService: { |
| 77 | getByArticle: (article: noosfero.Article) => { | 77 | getByArticle: (article: noosfero.Article) => { |
| 78 | - return Promise.resolve(); | 78 | + return Promise.resolve({data: {}}); |
| 79 | } | 79 | } |
| 80 | }, | 80 | }, |
| 81 | sessionWithCurrentUser: (user: any) => { | 81 | sessionWithCurrentUser: (user: any) => { |