1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

removed path.sep and use path.join to concatenate path

This commit is contained in:
Nguyễn Việt Hưng
2018-04-27 11:27:51 +07:00
parent 2e09501c8a
commit 8c43f3d567
4 changed files with 6 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ const os = require('os')
const path = require('path')
const crypto = require('crypto')
const snippetFilePath = path.join(os.tmpdir(), `test${path.sep}delete-snippet`)
const snippetFilePath = path.join(os.tmpdir(), 'test', 'delete-snippet')
const snippetFile = path.join(snippetFilePath, 'snippets.json')
const newSnippet = {
id: crypto.randomBytes(16).toString('hex'),