From 16bed0ca03f632c7a36ae35a8dcc95688633dfe4 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 7e26dfe07d..a2eaa4e62e 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 }); }