Implement pointer types in postgres. (#2086)

* Support pointers in postgres

* implement count

* Fix bug in createClass
This commit is contained in:
Drew
2016-06-17 11:09:42 -07:00
committed by GitHub
parent ab06055369
commit 006540cda5
6 changed files with 37 additions and 17 deletions

View File

@@ -103,7 +103,7 @@ describe('InstallationsRouter', () => {
});
});
it_exclude_dbs(['postgres'])('query installations with count = 1', (done) => {
it('query installations with count = 1', done => {
var androidDeviceRequest = {
'installationId': '12345678-abcd-abcd-abcd-123456789abc',
'deviceType': 'android'
@@ -130,10 +130,14 @@ describe('InstallationsRouter', () => {
expect(response.results.length).toEqual(2);
expect(response.count).toEqual(2);
done();
});
})
.catch(error => {
fail(JSON.stringify(error));
done();
})
});
it_exclude_dbs(['postgres'])('query installations with limit = 0 and count = 1', (done) => {
it('query installations with limit = 0 and count = 1', (done) => {
var androidDeviceRequest = {
'installationId': '12345678-abcd-abcd-abcd-123456789abc',
'deviceType': 'android'

View File

@@ -49,7 +49,7 @@ describe('Parse.Object testing', () => {
});
});
it_exclude_dbs(['postgres'])("save cycle", function(done) {
it("save cycle", done => {
var a = new Parse.Object("TestObject");
var b = new Parse.Object("TestObject");
a.set("b", b);
@@ -1478,7 +1478,7 @@ describe('Parse.Object testing', () => {
expectError(Parse.Error.MISSING_OBJECT_ID, done));
});
it("fetchAll error on deleted object", function(done) {
it_exclude_dbs(['postgres'])("fetchAll error on deleted object", function(done) {
var numItems = 11;
var container = new Container();
var subContainer = new Container();

View File

@@ -135,8 +135,7 @@ describe("test validate_receipt endpoint", () => {
});
});
it("should fail at appstore validation", (done) => {
it("should fail at appstore validation", done => {
request.post({
headers: {
'X-Parse-Application-Id': 'test',

View File

@@ -1,7 +1,7 @@
"use strict"
// Sets up a Parse API server for testing.
jasmine.DEFAULT_TIMEOUT_INTERVAL = process.env.PARSE_SERVER_TEST_TIMEOUT || 3000;
jasmine.DEFAULT_TIMEOUT_INTERVAL = process.env.PARSE_SERVER_TEST_TIMEOUT || 5000;
var cache = require('../src/cache').default;
var DatabaseAdapter = require('../src/DatabaseAdapter');