mirror of https://gitee.com/answerdev/answer.git
Merge pull request #519 from plant99/fix-repo-comment-tests
fix: tests failing during compilation
This commit is contained in:
commit
a9a47b8165
|
@ -65,7 +65,7 @@ func Test_commentRepo_UpdateComment(t *testing.T) {
|
|||
assert.NoError(t, err)
|
||||
|
||||
testCommentEntity.ParsedText = "test"
|
||||
err = commentRepo.UpdateCommentContent(context.TODO(), testCommentEntity, "", "")
|
||||
err = commentRepo.UpdateCommentContent(context.TODO(), testCommentEntity.ID, "test", "test")
|
||||
assert.NoError(t, err)
|
||||
|
||||
newComment, exist, err := commonCommentRepo.GetComment(context.TODO(), testCommentEntity.ID)
|
||||
|
|
|
@ -93,7 +93,7 @@ func Test_tagRepo_GetTagListByName(t *testing.T) {
|
|||
tagOnce.Do(addTagList)
|
||||
tagCommonRepo := tag_common.NewTagCommonRepo(testDataSource, unique.NewUniqueIDRepo(testDataSource))
|
||||
|
||||
gotTags, err := tagCommonRepo.GetTagListByName(context.TODO(), testTagList[0].SlugName, false)
|
||||
gotTags, err := tagCommonRepo.GetTagListByName(context.TODO(), testTagList[0].SlugName, false, false)
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, testTagList[0].SlugName, gotTags[0].SlugName)
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ import {
|
|||
|
||||
const Index: FC = () => {
|
||||
const { t } = useTranslation('translation', { keyPrefix: 'install' });
|
||||
const [step, setStep] = useState(4);
|
||||
const [step, setStep] = useState(1);
|
||||
const [loading, setLoading] = useState(true);
|
||||
const [errorData, setErrorData] = useState<{ [propName: string]: any }>({
|
||||
msg: '',
|
||||
|
|
Loading…
Reference in New Issue