From aba261122f2ff06b3a6bb06edf369e874dc67fd6 Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Mon, 19 Mar 2018 19:44:14 -0400 Subject: [PATCH] :art: Use `camelCase` for mutable variable --- test/app/attachments_test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/app/attachments_test.js b/test/app/attachments_test.js index a22d4f32c..d8bc362f2 100644 --- a/test/app/attachments_test.js +++ b/test/app/attachments_test.js @@ -15,18 +15,18 @@ const PATH_LENGTH = PREFIX_LENGTH + NUM_SEPARATORS + NAME_LENGTH; describe('Attachments', () => { describe('writeData', () => { - let TEMPORARY_DIRECTORY = null; + let tempRootDirectory = null; before(() => { - TEMPORARY_DIRECTORY = tmp.dirSync().name; + tempRootDirectory = tmp.dirSync().name; }); after(async () => { - await fse.remove(TEMPORARY_DIRECTORY); + await fse.remove(tempRootDirectory); }); it('should write file to disk and return path', async () => { const input = stringToArrayBuffer('test string'); - const tempDirectory = path.join(TEMPORARY_DIRECTORY, 'Attachments_writeData'); + const tempDirectory = path.join(tempRootDirectory, 'Attachments_writeData'); const outputPath = await Attachments.writeData(tempDirectory)(input); const output = await fse.readFile(path.join(tempDirectory, outputPath));