Updating test values.
This commit is contained in:
parent
691536ce71
commit
86aefcfe1a
|
@ -168,7 +168,7 @@ describe("Captures of real examples", () => {
|
||||||
let query = SQL._query(queryJson, { disableReturning: true })
|
let query = SQL._query(queryJson, { disableReturning: true })
|
||||||
expect(query).toEqual({
|
expect(query).toEqual({
|
||||||
sql: "insert into [people] ([age], [name]) values (@p0, @p1)",
|
sql: "insert into [people] ([age], [name]) values (@p0, @p1)",
|
||||||
bindings: [222, "awfawf"],
|
bindings: [22, "Test"],
|
||||||
})
|
})
|
||||||
|
|
||||||
// now check returning
|
// now check returning
|
||||||
|
@ -178,7 +178,7 @@ describe("Captures of real examples", () => {
|
||||||
}, queryJson)
|
}, queryJson)
|
||||||
expect(returningQuery).toEqual({
|
expect(returningQuery).toEqual({
|
||||||
sql: "select * from (select top (@p0) * from [people] where [people].[name] = @p1 and [people].[age] = @p2 order by [people].[name] asc) as [people]",
|
sql: "select * from (select top (@p0) * from [people] where [people].[name] = @p1 and [people].[age] = @p2 order by [people].[name] asc) as [people]",
|
||||||
bindings: [1, "awfawf", 222],
|
bindings: [1, "Test", 22],
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
@ -13,14 +13,14 @@
|
||||||
"filters": {},
|
"filters": {},
|
||||||
"relationships": [],
|
"relationships": [],
|
||||||
"body": {
|
"body": {
|
||||||
"name": "awfawf",
|
"name": "Test",
|
||||||
"age": 222
|
"age": 22
|
||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
"idFilter": {
|
"idFilter": {
|
||||||
"equal": {
|
"equal": {
|
||||||
"name": "awfawf",
|
"name": "Test",
|
||||||
"age": 222
|
"age": 22
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue