Skip to content

Commit

Permalink
fix(test): remove rmDirSync, use rmSync instead
Browse files Browse the repository at this point in the history
  • Loading branch information
CBW2007 committed Nov 19, 2021
1 parent 5fc8d18 commit 0af6a53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { SitemapManager } = require('../dist/index')
const fs = require('fs')

if (fs.existsSync('./public')) { fs.rmdirSync('./public', { recursive: true }) }
if (fs.existsSync('./public')) { fs.rmSync('./public', { recursive: true }) }
fs.mkdirSync('./public')

const MySitemap = new SitemapManager({
Expand Down

0 comments on commit 0af6a53

Please sign in to comment.