Skip to content

Commit

Permalink
fix: fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
yibn2008 committed Jan 5, 2025
1 parent 81e0bc0 commit 8de1c3b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/find.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ describe('Find process test', function () {
this.timeout(10000);

it('should run the bin/find-process.js', function () {
const result = cp.execSync('./bin/find-process.js -v').toString()
console.log(result)
assert.equal(result, pkg.version)
const result = cp.execSync('./bin/find-process.js -V').toString()
assert.equal(result.trim(), pkg.version)
})

it('should find process of listenning port', function () {
Expand Down

0 comments on commit 8de1c3b

Please sign in to comment.