parse-mockdb icon indicating copy to clipboard operation
parse-mockdb copied to clipboard

Support for Parse.File.save()

Open focomoso opened this issue 7 years ago • 1 comments

This is a combo question / feature request.

I just want to confirm that Parse.File.save() doesn't work on marse-mockdb.

When I do:

    const parseFile = new Parse.File('test.json', { base64: "{}".toString('base64') });
    await parseFile.save();

I get no error, but when I try to save the object the file is set on, I get "Tried to encode an unsaved file."

Is there a workaround for mocking parse files? And if not, has anyone looked into what it'll take to mock it. I can look into it, but want to be sure no one else is doing it (or has decided that it's not possible / worth the effort).

focomoso avatar Dec 07 '18 18:12 focomoso

If you wanted to send a PR for that, I think that would be great!

MatrixFrog avatar Dec 10 '18 17:12 MatrixFrog