Skip to content

Commit

Permalink
halfassed testing suite
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotberry committed Nov 29, 2023
1 parent 9891d48 commit c72c376
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import test from 'node:test'
const __dirname = path.dirname(fileURLToPath(import.meta.url))
//this part is important for the tests to run
var coolText = chalk.bgBlue.black

var app = "node ./cli.js"
const dirPath = path.resolve(path.join(__dirname, 'test-assets'))
const names = [
'Persian',
Expand Down Expand Up @@ -133,7 +133,7 @@ test('test command line usage for extreme error', async(t) => {
coolText(`Running detawks against one file... (${oneFilePath}))`)
)
exec(
`detawks ${oneFilePath} --dryrun --rename --silent`,
`${app} ${oneFilePath} --dryrun --rename --silent`,
(error, stdout, stderr) => {
if (error) {
console.log(`error: ${error.message}`)
Expand Down Expand Up @@ -164,7 +164,7 @@ test('test command line usage for extreme error', async(t) => {
)
console.log(coolText('Running detawks against the whole test directory...'))
exec(
`detawks ${dirPath} --dryrun --rename --silent`,
`${app} ${dirPath} --dryrun --rename --silent`,
(error, stdout, stderr) => {
if (error) {
console.log(`error: ${error.message}`)
Expand Down

0 comments on commit c72c376

Please sign in to comment.