fixing tests.
This commit is contained in:
parent
3c30298b7c
commit
2a8b302319
|
@ -238,7 +238,7 @@ func (suite *RepositoryTestSuite) TestQueryResources_SQL() {
|
||||||
"SELECT fhir.*",
|
"SELECT fhir.*",
|
||||||
"FROM fhir_observation as fhir, json_each(fhir.code) as codeJson",
|
"FROM fhir_observation as fhir, json_each(fhir.code) as codeJson",
|
||||||
"WHERE ((codeJson.value ->> '$.code' = ?)) AND (user_id = ?) GROUP BY `fhir`.`id`",
|
"WHERE ((codeJson.value ->> '$.code' = ?)) AND (user_id = ?) GROUP BY `fhir`.`id`",
|
||||||
"ORDER BY fhir.sort_date asc"}, " "))
|
"ORDER BY fhir.sort_date ASC"}, " "))
|
||||||
require.Equal(suite.T(), sqlParams, []interface{}{
|
require.Equal(suite.T(), sqlParams, []interface{}{
|
||||||
"test_code", "00000000-0000-0000-0000-000000000000",
|
"test_code", "00000000-0000-0000-0000-000000000000",
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue