feat(postgres): Add Bytes to Support (#3894)
* Add bytes to schema * postgres support * test cases * bytes work parse object
This commit is contained in:
committed by
Florent Vilmart
parent
e8be98ded2
commit
4b16a72992
@@ -1328,7 +1328,7 @@ describe('Parse.Object testing', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it_exclude_dbs(['postgres'])("bytes work", function(done) {
|
||||
it("bytes work", function(done) {
|
||||
Parse.Promise.as().then(function() {
|
||||
var obj = new TestObject();
|
||||
obj.set("bytes", { __type: "Bytes", base64: "ZnJveW8=" });
|
||||
|
||||
@@ -523,6 +523,7 @@ describe('SchemaController', () => {
|
||||
aFile: {type: 'File'},
|
||||
aPointer: {type: 'Pointer', targetClass: 'ThisClassDoesNotExistYet'},
|
||||
aRelation: {type: 'Relation', targetClass: 'NewClass'},
|
||||
aBytes: {type: 'Bytes'},
|
||||
}))
|
||||
.then(actualSchema => {
|
||||
const expectedSchema = {
|
||||
@@ -542,6 +543,7 @@ describe('SchemaController', () => {
|
||||
aFile: { type: 'File' },
|
||||
aPointer: { type: 'Pointer', targetClass: 'ThisClassDoesNotExistYet' },
|
||||
aRelation: { type: 'Relation', targetClass: 'NewClass' },
|
||||
aBytes: {type: 'Bytes'},
|
||||
},
|
||||
classLevelPermissions: {
|
||||
find: { '*': true },
|
||||
|
||||
Reference in New Issue
Block a user