FIX: Broken test, also typoed property

FIX: Broken test, also typoed property

diff --git a/app/assets/javascripts/discourse/lib/transform-post.js.es6 b/app/assets/javascripts/discourse/lib/transform-post.js.es6
index 6200afa..7a1872b 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 f3aeec4..aa5d829 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
       });
     },

GitHub sha: c4fa20d6

1 Like