Enable query related tests for Postgres (#2969)
This commit is contained in:
committed by
Florent Vilmart
parent
142b3beab6
commit
edf6ab6875
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user