Skip to content

Commit 1062885

Browse files
committed
chore: update file tag tests
1 parent 85af95b commit 1062885

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/ParseFile.spec.js

+4
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ describe('Parse.File testing', () => {
213213
file.setTags(tags);
214214
expect(file.url()).toBeUndefined();
215215
const result = await file.save();
216+
expect(file.name()).toBeDefined();
217+
expect(file.url()).toBeDefined();
216218
expect(result.tags()).toEqual(tags);
217219
expect(FilesController.prototype.createFile.calls.argsFor(0)[4]).toEqual({
218220
tags: tags,
@@ -224,7 +226,9 @@ describe('Parse.File testing', () => {
224226
spyOn(FilesController.prototype, 'createFile').and.callThrough();
225227
const file = new Parse.File('hello.txt', data, 'text/plain');
226228
expect(file.url()).toBeUndefined();
229+
expect(file.name()).toBeDefined();
227230
await file.save();
231+
expect(file.url()).toBeDefined();
228232
expect(FilesController.prototype.createFile.calls.argsFor(0)[4]).toEqual({
229233
metadata: {},
230234
});

0 commit comments

Comments
 (0)