Skip to content

Commit adeb9c7

Browse files
committed
Added syntaxt error test.
1 parent 55466bc commit adeb9c7

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

lib/av.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* AVOSCloud JavaScript SDK
3-
* Version: 0.4.0
3+
* Version: 0.4.3
44
* Built: Mon Jun 03 2013 13:45:00
55
* http://avoscloud.com
66
*
@@ -13,7 +13,7 @@
1313
*/
1414
(function(root) {
1515
root.AV = root.AV || {};
16-
root.AV.VERSION = "js0.4.0";
16+
root.AV.VERSION = "js0.4.3";
1717
}(this));
1818
// Underscore.js 1.4.4
1919
// http://underscorejs.org

tests/query.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@ describe("Queries",function(){
5959
done();
6060
});
6161
});
62+
it("should return syntax error.", function(done){
63+
AV.Cloud.doCloudQuery('select * GameScore limit 10').then(function(){
64+
throw "Shoud not be successfully.";
65+
},
66+
function(error){
67+
console.dir(error);
68+
expect(error).to.be.an(AV.Error);
69+
done();
70+
});
71+
});
6272
});
6373

6474
describe("#save&query()",function(){

0 commit comments

Comments
 (0)