Skip to content

Commit

Permalink
modify unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
zeyu10 committed Feb 22, 2024
1 parent 975d064 commit 46c7707
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ class TaskTemplateProviderTest extends Specification {
taskTemplateDO.setCategory("function")
taskTemplateDO.setId(1L)
taskTemplateDO.setType(0)
taskTemplateDO.setTaskYaml("{}")
when:
String sql = provider.update(taskTemplateDO)
then:
sql == "UPDATE task_template\n" +
"SET `type` = #{type}, `category` = #{category}\n" +
"SET `type` = #{type}, `category` = #{category}, `task_yaml` = #{taskYaml}\n" +
"WHERE (id = #{id})"
}

Expand Down

0 comments on commit 46c7707

Please sign in to comment.