🎨 Use camelCase
for mutable variable
This commit is contained in:
parent
e1c1b1aa72
commit
aba261122f
1 changed files with 4 additions and 4 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue