Skip to content

refactor: Upgrade to parse-server 8.1.0 #2557

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions integration/test/ParseSchemaTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ const defaultCLPS = {
delete: { '*': true },
addField: { '*': true },
protectedFields: { '*': [] },
ACL: {
'*': {
read: true,
write: true
}
},
};

describe('Schema', () => {
Expand Down Expand Up @@ -320,6 +326,12 @@ describe('Schema', () => {
delete: {},
addField: {},
protectedFields: {},
ACL: {
'*': {
read: true,
write: true
}
},
};
const testSchema = new Parse.Schema('SchemaTest');
let schema = await testSchema.save();
Expand Down
10 changes: 10 additions & 0 deletions integration/test/ParseUserTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -1047,6 +1047,11 @@ describe('Parse User', () => {
});

it('can link with twitter', async () => {
const twitterAdapter = require('../../node_modules/parse-server/lib/Adapters/Auth/twitter').default;
spyOn(twitterAdapter, 'beforeFind').and.callFake(() => {
return Promise.resolve();
});

const server = await reconfigureServer();
const twitter = server.config.auth.twitter;
const spy = spyOn(twitter, 'validateAuthData').and.callThrough();
Expand All @@ -1067,6 +1072,11 @@ describe('Parse User', () => {
});

it('can link with twitter and facebook', async () => {
const twitterAdapter = require('../../node_modules/parse-server/lib/Adapters/Auth/twitter').default;
spyOn(twitterAdapter, 'beforeFind').and.callFake(() => {
return Promise.resolve();
});

const server = await reconfigureServer();
const twitter = server.config.auth.twitter;
const spy = spyOn(twitter, 'validateAuthData').and.callThrough();
Expand Down
Loading