Updated integration tests
This commit is contained in:
parent
17483ee199
commit
3b87ab2255
@ -181,9 +181,10 @@ end)
|
||||
TestFramework:RegisterTest("[Prepared Query] should return correct error", function(test)
|
||||
local db = TestFramework:ConnectToDatabase()
|
||||
local qu = db:prepare("SEsdg")
|
||||
function qu:onError(err)
|
||||
function qu:onError(err, sql)
|
||||
test:shouldBeEqual(qu:error(), err)
|
||||
test:shouldBeGreaterThan(#qu:error(), 0)
|
||||
test:shouldBeEqual(sql, "SEsdg")
|
||||
test:Complete()
|
||||
end
|
||||
qu:start()
|
||||
|
@ -121,8 +121,9 @@ end)
|
||||
TestFramework:RegisterTest("[Query] should return correct error", function(test)
|
||||
local db = TestFramework:ConnectToDatabase()
|
||||
local qu = db:query("SEsdg")
|
||||
function qu:onError(err)
|
||||
function qu:onError(err, sql)
|
||||
test:shouldBeEqual(qu:error(), err)
|
||||
test:shouldBeEqual(sql, "SEsdg")
|
||||
test:shouldBeGreaterThan(#qu:error(), 0)
|
||||
test:Complete()
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user