From 1e58cf1dc7f52d9ed26a175783b24f50174d3669 Mon Sep 17 00:00:00 2001 From: otofune Date: Tue, 7 Nov 2017 09:59:58 +0900 Subject: [PATCH] test - fix insertDriveFile (use GridFS filename) --- test/api.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/api.js b/test/api.js index 7e26dfe07..a2eaa4e62 100644 --- a/test/api.js +++ b/test/api.js @@ -1155,9 +1155,8 @@ function insertHimawari(opts) { function insertDriveFile(opts) { return db.get('drive_files.files').insert({ length: opts.datasize, - metadata: Object.assign({ - name: 'strawberry-pasta.png' - }, opts) + filename: 'strawberry-pasta.png', + metadata: opts }); }