Skip to content

Commit

Permalink
Add TestCustomObjectId.spec.js error1
Browse files Browse the repository at this point in the history
  • Loading branch information
badboy-tian committed May 28, 2024
1 parent d2f408d commit 56fd960
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spec/TestCustomObjectId.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ const moment = require('moment');

describe('Test Custom ObjectId', () => {
it('object not found ', async () => {
Parse.initialize('debug_appid', 'debug_key', 'debug_masterKey');
Parse.serverURL = 'http://localhost:1337/parse';
await reconfigureServer({
allowCustomObjectId: true,
})

const body = {
name: 'SaveAudio',
data: '{"__after":"1716788669509,2cf6e3698932972402fa3ca2405b437dc3ac727a","isDeleted":false,"name":"好的呢,宝宝","duration":2,"url":"http://file2.i7play.com/FdD9KwF4xNgBHTiGcJByMNs6P470XNFp/20240405195209.mp3","user":{"__type":"Pointer","className":"_User","objectId":"65de1d08caa7af401d105a56"},"pack":{"__type":"Pointer","className":"SaveAudioPack","objectId":"65e9fcec4567a26864d47d2b"},"objectId":"66541dbdffead844f1339e3c","createdAt":"2024-05-27T05:44:29.504Z","updatedAt":"2024-05-27T05:44:29.504Z"}',
data: '{"__after":"1716788669509,2cf6e3698932972402fa3ca2405b437dc3ac727a","isDeleted":false,"name":"好的呢,宝宝","duration":2,"url":"http://file2.xxx.com/FdD9KwF4xNgBHTiGcJByMNs6P470XNFp/20240405195209.mp3","user":{"__type":"Pointer","className":"_User","objectId":"65de1d08caa7af401d105a56"},"pack":{"__type":"Pointer","className":"SaveAudioPack","objectId":"65e9fcec4567a26864d47d2b"},"objectId":"66541dbdffead844f1339e3c","createdAt":"2024-05-27T05:44:29.504Z","updatedAt":"2024-05-27T05:44:29.504Z"}',
};
const name = body.name;
const data = JSON.parse(body.data);
Expand Down

0 comments on commit 56fd960

Please sign in to comment.