Skip to content

Commit c6bba0f

Browse files
committed
优化 file 测试用例。
1 parent 3469882 commit c6bba0f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/file.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
describe('files', function() {
44
describe('Saving base64', function() {
5-
6-
var base64 = 'd29ya2luZyBhdCBhdm9zY2xvdWQgaXMgZ3JlYXQh';
7-
var file = new AV.File('myfile.txt', { base64: base64 });
8-
95
it('should be saved', function(done) {
6+
var base64 = 'd29ya2luZyBhdCBhdm9zY2xvdWQgaXMgZ3JlYXQh';
7+
var file = new AV.File('myfile.txt', { base64: base64 });
108
file.metaData('format', 'txt file');
119
file.setACL(new AV.ACL());
1210
file.save().then(function() {

0 commit comments

Comments
 (0)