Commit d6122debe90a4b72bdec7babbacb7b50676dfd07
1 parent
a479bae9
Exists in
master
and in
19 other branches
just formatting the code
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
src/app/article/article-default-view-component.spec.ts
@@ -71,12 +71,12 @@ describe("Components", () => { | @@ -71,12 +71,12 @@ describe("Components", () => { | ||
71 | function doDeleteArticle() { | 71 | function doDeleteArticle() { |
72 | // Create a mock for the notification service confirmation | 72 | // Create a mock for the notification service confirmation |
73 | spyOn(helper.component.notificationService, 'confirmation').and.callFake(function (params: Function) { | 73 | spyOn(helper.component.notificationService, 'confirmation').and.callFake(function (params: Function) { |
74 | - | 74 | + |
75 | }); | 75 | }); |
76 | // Create a mock for the ArticleService removeArticle method | 76 | // Create a mock for the ArticleService removeArticle method |
77 | - spyOn(helper.component.articleService, 'removeArticle').and.callFake(function(param: noosfero.Article) { | 77 | + spyOn(helper.component.articleService, 'removeArticle').and.callFake(function (param: noosfero.Article) { |
78 | return { | 78 | return { |
79 | - catch: () => {} | 79 | + catch: () => { } |
80 | }; | 80 | }; |
81 | }); | 81 | }); |
82 | helper.component.delete(); | 82 | helper.component.delete(); |
@@ -93,7 +93,7 @@ describe("Components", () => { | @@ -93,7 +93,7 @@ describe("Components", () => { | ||
93 | * notifyArticleRemovedListeners event | 93 | * notifyArticleRemovedListeners event |
94 | */ | 94 | */ |
95 | function simulateRemovedEvent() { | 95 | function simulateRemovedEvent() { |
96 | - helper.component.notificationService["confirmation"]( { title: "Title", message: "Message" }, () =>{}); | 96 | + helper.component.notificationService["confirmation"]({ title: "Title", message: "Message" }, () => { }); |
97 | helper.component.articleService["notifyArticleRemovedListeners"](article); | 97 | helper.component.articleService["notifyArticleRemovedListeners"](article); |
98 | } | 98 | } |
99 | }); | 99 | }); |