Commit d6122debe90a4b72bdec7babbacb7b50676dfd07

Authored by ABNER SILVA DE OLIVEIRA
1 parent a479bae9

just formatting the code

src/app/article/article-default-view-component.spec.ts
... ... @@ -71,12 +71,12 @@ describe("Components", () => {
71 71 function doDeleteArticle() {
72 72 // Create a mock for the notification service confirmation
73 73 spyOn(helper.component.notificationService, 'confirmation').and.callFake(function (params: Function) {
74   -
  74 +
75 75 });
76 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 78 return {
79   - catch: () => {}
  79 + catch: () => { }
80 80 };
81 81 });
82 82 helper.component.delete();
... ... @@ -93,7 +93,7 @@ describe("Components", () => {
93 93 * notifyArticleRemovedListeners event
94 94 */
95 95 function simulateRemovedEvent() {
96   - helper.component.notificationService["confirmation"]( { title: "Title", message: "Message" }, () =>{});
  96 + helper.component.notificationService["confirmation"]({ title: "Title", message: "Message" }, () => { });
97 97 helper.component.articleService["notifyArticleRemovedListeners"](article);
98 98 }
99 99 });
... ...