utils-google-drive
Advanced tools
Comparing version 5.0.2 to 5.0.3
{ | ||
"name": "utils-google-drive", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"description": "A simple and flexible package for interacting with Google Drive", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -153,4 +153,6 @@ 'use strict'; | ||
const res = await utilsGDrive.listChildren({ fileId: parentId }); | ||
expect(Object.keys(res[0])).toEqual(['id', 'name', 'mimeType']); | ||
const props = Object.keys(res[0]); | ||
for (const prop of [ 'id', 'name', 'mimeType' ]) { | ||
expect(props.includes(prop)); | ||
} | ||
expect(res.filter((file) => file.id === childId).length).toEqual(1); | ||
@@ -157,0 +159,0 @@ }, |
80764
1947