From 507054c9ffb1bd79bd09c67c493e4cca09b409bc Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 10 Sep 2018 12:59:51 +0300 Subject: [PATCH] test(route) no one file panel --- test/server/route.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/server/route.js b/test/server/route.js index 2ff9a010..060d997b 100644 --- a/test/server/route.js +++ b/test/server/route.js @@ -101,6 +101,20 @@ test('cloudcmd: route: buttons: one file panel: move', async (t) => { await done(); }); +test('cloudcmd: route: buttons: no one file panel: move', async (t) => { + const config = { + oneFilePanel: false + }; + + const {port, done} = await connect({config}); + const result = await getStr(`http://localhost:${port}`); + + t.notOk(/icon-move none/.test(result), 'should not hide move button'); + t.end(); + + await done(); +}); + test('cloudcmd: route: buttons: one file panel: move', async (t) => { const config = { oneFilePanel: true