From c4fa20d644b7ac264ddd546e6c90fc35de70fbad Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 30 May 2019 14:27:28 -0400 Subject: [PATCH] FIX: Broken test, also typoed property --- app/assets/javascripts/discourse/lib/transform-post.js.es6 | 2 +- test/javascripts/widgets/post-test.js.es6 | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse/lib/transform-post.js.es6 b/app/assets/javascripts/discourse/lib/transform-post.js.es6 index 6200afa2bb0..7a1872b4fe5 100644 --- a/app/assets/javascripts/discourse/lib/transform-post.js.es6 +++ b/app/assets/javascripts/discourse/lib/transform-post.js.es6 @@ -55,7 +55,7 @@ export function transformBasicPost(post) { reviewableScorePendingCount: post.reviewable_score_pending_count, version: post.version, canRecoverTopic: false, - canDeletedTopic: false, + canDeleteTopic: false, canViewEditHistory: post.can_view_edit_history, canWiki: post.can_wiki, showLike: false, diff --git a/test/javascripts/widgets/post-test.js.es6 b/test/javascripts/widgets/post-test.js.es6 index f3aeec4028a..aa5d8291946 100644 --- a/test/javascripts/widgets/post-test.js.es6 +++ b/test/javascripts/widgets/post-test.js.es6 @@ -302,8 +302,7 @@ widgetTest( beforeEach() { this.set("args", { canDeleteTopic: false, - yours: true, - firstPost: true + showFlagDelete: true }); },