Enable query related tests for Postgres (#2969)

This commit is contained in:
Kulshekhar Kabra
2016-10-31 21:40:53 +05:30
committed by Florent Vilmart
parent 142b3beab6
commit edf6ab6875
2 changed files with 90 additions and 7 deletions

View File

@@ -1233,7 +1233,7 @@ describe('Parse.Query testing', () => {
query.find(expectError(Parse.Error.INVALID_QUERY, done));
});
it_exclude_dbs(['postgres'])("Use a regex that requires all modifiers", function(done) {
it("Use a regex that requires all modifiers", function(done) {
var thing = new TestObject();
thing.set("myString", "PArSe\nCom");
Parse.Object.saveAll([thing], function() {
@@ -1248,6 +1248,10 @@ describe('Parse.Query testing', () => {
success: function(results) {
equal(results.length, 1);
done();
},
error: function(err) {
jfail(err);
done();
}
});
});
@@ -1271,7 +1275,7 @@ describe('Parse.Query testing', () => {
var someAscii = "\\E' !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTU" +
"VWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~'";
it_exclude_dbs(['postgres'])("contains", function(done) {
it("contains", function(done) {
Parse.Object.saveAll([new TestObject({myString: "zax" + someAscii + "qub"}),
new TestObject({myString: "start" + someAscii}),
new TestObject({myString: someAscii + "end"}),
@@ -1287,7 +1291,7 @@ describe('Parse.Query testing', () => {
});
});
it_exclude_dbs(['postgres'])("startsWith", function(done) {
it("startsWith", function(done) {
Parse.Object.saveAll([new TestObject({myString: "zax" + someAscii + "qub"}),
new TestObject({myString: "start" + someAscii}),
new TestObject({myString: someAscii + "end"}),
@@ -1303,7 +1307,7 @@ describe('Parse.Query testing', () => {
});
});
it_exclude_dbs(['postgres'])("endsWith", function(done) {
it("endsWith", function(done) {
Parse.Object.saveAll([new TestObject({myString: "zax" + someAscii + "qub"}),
new TestObject({myString: "start" + someAscii}),
new TestObject({myString: someAscii + "end"}),
@@ -1634,7 +1638,7 @@ describe('Parse.Query testing', () => {
})
});
it_exclude_dbs(['postgres'])('properly nested array of mixed objects with bad ids', (done) => {
it('properly nested array of mixed objects with bad ids', (done) => {
let objects = [];
let total = 0;
while(objects.length != 5) {
@@ -1744,7 +1748,7 @@ describe('Parse.Query testing', () => {
});
});
it_exclude_dbs(['postgres'])("matches query", function(done) {
it("matches query", function(done) {
var ParentObject = Parse.Object.extend("ParentObject");
var ChildObject = Parse.Object.extend("ChildObject");
var objects = [];