瀏覽代碼

Fix mention helper test

Chocobozzz 5 年之前
父節點
當前提交
ed10645c2f
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      server/tests/helpers/comment-model.ts

+ 2 - 0
server/tests/helpers/comment-model.ts

@@ -10,6 +10,8 @@ class CommentMock {
   text: string
 
   extractMentions = VideoCommentModel.prototype.extractMentions
+
+  isOwned = () => true
 }
 
 describe('Comment model', function () {