1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-16 03:06:27 +00:00

fixed eslint error & integrated with prettier as well as formatted the whole codebase (#3450)

This commit is contained in:
Nguyen Viet Hung
2020-02-05 13:28:27 +13:00
committed by GitHub
parent 051ce9e208
commit 592aca1539
186 changed files with 9233 additions and 5565 deletions

View File

@@ -13,13 +13,13 @@ const srcPath = path.join(srcFolder, testFile)
const dstFolder = path.join(__dirname, '😇')
const dstPath = path.join(dstFolder, testFile)
test.before((t) => {
test.before(t => {
if (!fs.existsSync(srcFolder)) fs.mkdirSync(srcFolder)
fs.writeFileSync(srcPath, 'test')
})
test('`copyFile` should handle encoded URI on src path', (t) => {
test('`copyFile` should handle encoded URI on src path', t => {
return copyFile(encodeURI(srcPath), dstPath)
.then(() => {
t.true(true)
@@ -29,10 +29,9 @@ test('`copyFile` should handle encoded URI on src path', (t) => {
})
})
test.after((t) => {
test.after(t => {
fs.unlinkSync(srcPath)
fs.unlinkSync(dstPath)
execSync(removeDirCommand + '"' + srcFolder + '"')
execSync(removeDirCommand + '"' + dstFolder + '"')
})