Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Commit

Permalink
final fixes for #139
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddentao committed Sep 9, 2015
1 parent 3ad3a40 commit 48b3fb8
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "squel",
"description": "SQL query string builder",
"version": "4.1.1",
"version": "4.2.0",
"author": "Ramesh Nair <ram@hiddentao.com> (http://www.hiddentao.com/)",
"contributors": [
"Ramesh Nair <ram@hiddentao.com> (http://www.hiddentao.com/)"
Expand Down
2 changes: 1 addition & 1 deletion squel-basic.js
Expand Up @@ -2116,7 +2116,7 @@ OTHER DEALINGS IN THE SOFTWARE.

})(cls.QueryBuilder);
_squel = {
VERSION: '4.1.1',
VERSION: '4.2.0',
expr: function() {
return new cls.Expression;
},
Expand Down
2 changes: 1 addition & 1 deletion squel-basic.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion squel.js
Expand Up @@ -2116,7 +2116,7 @@ OTHER DEALINGS IN THE SOFTWARE.

})(cls.QueryBuilder);
_squel = {
VERSION: '4.1.1',
VERSION: '4.2.0',
expr: function() {
return new cls.Expression;
},
Expand Down
2 changes: 1 addition & 1 deletion squel.min.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions test/baseclasses.test.coffee
Expand Up @@ -945,6 +945,13 @@ test['QueryBuilder base class'] =
'is nestable': ->
assert.same false, @inst.isNestable()

'get block':
'valid': ->
block = new squel.cls.FunctionBlock()
@inst.blocks.push(block)
assert.same block, @inst.getBlock(squel.cls.FunctionBlock)
'invalid': ->
assert.throws (-> @inst.getBlock(squel.cls.FunctionBlock) )



Expand Down

0 comments on commit 48b3fb8

Please sign in to comment.