@@ -4,27 +4,27 @@ var test = require('utest');
44
55test ( 'SqlString.escapeId' , {
66 'value is quoted' : function ( ) {
7- assert . equal ( '`id`' , SqlString . escapeId ( 'id' ) ) ;
7+ assert . equal ( SqlString . escapeId ( 'id' ) , '`id`' ) ;
88 } ,
99
1010 'value can be a number' : function ( ) {
11- assert . equal ( '`42`' , SqlString . escapeId ( 42 ) ) ;
11+ assert . equal ( SqlString . escapeId ( 42 ) , '`42`' ) ;
1212 } ,
1313
1414 'value containing escapes is quoted' : function ( ) {
15- assert . equal ( '`i``d`' , SqlString . escapeId ( 'i`d' ) ) ;
15+ assert . equal ( SqlString . escapeId ( 'i`d' ) , '`i``d`' ) ;
1616 } ,
1717
1818 'value containing separator is quoted' : function ( ) {
19- assert . equal ( '` id1`.` id2`' , SqlString . escapeId ( ' id1. id2' ) ) ;
19+ assert . equal ( SqlString . escapeId ( ' id1. id2' ) , '` id1`.` id2`' ) ;
2020 } ,
2121
2222 'value containing separator and escapes is quoted' : function ( ) {
23- assert . equal ( '` id``1`.`i``d2`' , SqlString . escapeId ( ' id`1.i`d2' ) ) ;
23+ assert . equal ( SqlString . escapeId ( ' id`1.i`d2' ) , '` id``1`.`i``d2`' ) ;
2424 } ,
2525
2626 'value containing separator is fully escaped when forbidQualified' : function ( ) {
27- assert . equal ( '`id1.id2`' , SqlString . escapeId ( 'id1.id2' , true ) ) ;
27+ assert . equal ( SqlString . escapeId ( 'id1.id2' , true ) , '`id1.id2`' ) ;
2828 } ,
2929
3030 'arrays are turned into lists' : function ( ) {
0 commit comments