-
Notifications
You must be signed in to change notification settings - Fork 0
/
testResults.txt
57 lines (52 loc) · 3.84 KB
/
testResults.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
decorated-google-drive:
initializing
✓ should not throw an error
✓ drive should not be undefined
✓ drive.x should be an object
drive.x.aboutMe
✓ should return the test users email address (385ms)
✓ should return a storageQuota object with properties limit, usage (153ms)
✓ drive.about.get still works, as well, and the outputs match (308ms)
drive.x.hexid
✓ should return a 64 char hex id (266ms)
✓ should consistently return the same 64 char hex when called 3 times (177ms)
drive.x.appDataFolder.upload2: upload a string ...-1-2-3 to appDataFolder
✓ uploading the string to appDataFolder file myaccount should resolve with expected file metadata
✓ drive.x.appDataFolder.searcher should report there is exactly one myaccount file in the folder and it should match upload file id
✓ drive.x.appDataFolder.contents should resolve to contents Hello-World-Test-1-2-3
drive.x.upload2: upload a file README.md to Drive folder /path/to/test/Files
✓ uploading the README.md file to /path/to/test/Files/README.md should resolve with expected file metadata
✓ the parents[0] folder should have the name 'Files' (181ms)
✓ searching the parents[0] folder for README.md find a file with matching id (413ms)
after drive.x.upload2
✓ searching root for anything should yield folder 'path' with .isFolder===true (398ms)
✓ searching root for folders should yield folder 'path' with .isFolder===true (263ms)
✓ searching root for non-folders should be empty (251ms)
✓ searching all folders for any non-trashed file should be non-empty and include file README.md in results (318ms)
✓ searching all folders or a file with appProperties: { 'role': 'documentation' } should be empty (401ms)
✓ checking existence of /path/to/test/Files/README.md with drive.x.findPath should yield expected file metadata (1229ms)
✓ checking existence of /path/to/test should yield expected folder metadata (1013ms)
✓ checking existence on wrong path should throw Boom.notfound (188ms)
✓ downloading content with drive.x.download should yield contents string including 'License: MIT' (1848ms)
✓ updating README.md appProperties to {'role': 'documentation'} should succeed (2392ms)
✓ searching all folders or a file with appProperties: { 'role': 'documentation' } should find README.md (273ms)
✓ drive.x.upload2 uploading the file again with {clobber:false} will throw Boom.conflict error because file already exists (1831ms)
drive.x.upload2: upload test/test.zip to Drive folder /path/to/test/Files
✓ uploading the test.zip file to /path/to/test/Files/test.zip should resolve with expected file metadata and md5 match
create folder /path/to/test2
✓ the resolved folder object should be an object with props id, name, mimeType, isFolder
✓ the folder.id should be a string with length >4
✓ the folder.name should be "test2"
✓ the mimeType should be application/vnd.google-apps.folder
✓ isNew should be true
✓ isFolder should be true
✓ parents should be an Array containing 1 string
use folderId of /path/to/test2 to upload test.zip
✓ uploading the test.zip file to /path/to/test2/test.zip should resolve with expected file metadata and md5 match
cleanup via drive.x.janitor
✓ janitor hopefully deletes the README.md file(s) OK and resolves correctly (2242ms)
✓ drive.x.findPath will throw Boom.notFound if the file was successfully deleted (1619ms)
✓ janitor will throw an error if told to delete an invalid file (81ms)
✓ janitor should not throw an error if given an empty filelist
✓ final cleanup: delete the path folder and check non-existence (1367ms)
40 passing (32s)