Skip to content
Snippets Groups Projects
Commit 3ba93402 authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

tests for sql builder and

parent c3fbfd74
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ import("UnitTest_lib");
var andTests = [
// First the tests with only the first parameter
["plain text-condition", function(pTester) {
var testSql = "PERSON.FIRSTNAME = 'Admin'";
var testSql = " ( PERSON.FIRSTNAME = 'Admin' ) ";
var actual = new SqlBuilder()
.and(testSql)
......@@ -17,7 +17,7 @@ var andTests = [
["prepared statement", function(pTester) {
var testPrepared = ["PERSON.FIRSTNAME = ?", [["Admin", SQLTYPES.CHAR]]];
var expected = " ( PERSON.FIRSTNAME = 'Admin' ) ";
var expected = " ( PERSON.FIRSTNAME = 'Admin' ) ";
var actual = new SqlBuilder()
.and(testPrepared)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment