Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
hyj1991 committed May 7, 2021
1 parent 7d1b319 commit 57bb0eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

[![Npm](https://img.shields.io/npm/v/xprofiler)](https://www.npmjs.com/package/xprofiler)
[![Codecov branch](https://img.shields.io/codecov/c/github/X-Profiler/xprofiler/master)](https://codecov.io/gh/X-Profiler/xprofiler/branch/master)
[![Linux/osx build status](https://github.com/X-Profiler/xprofiler/workflows/Continuous%20integration/badge.svg)](https://github.com/X-Profiler/xprofiler/actions?query=branch%3Amaster)
[![Windows build status](https://ci.appveyor.com/api/projects/status/e5xtotum6lbi3mt7/branch/master?svg=true)](https://ci.appveyor.com/project/hyj1991/xprofiler/branch/master)
[![Build status](https://github.com/X-Profiler/xprofiler/workflows/Continuous%20integration/badge.svg)](https://github.com/X-Profiler/xprofiler/actions?query=branch%3Amaster)
[![Npm](https://img.shields.io/npm/dm/xprofiler)](https://www.npmjs.com/package/xprofiler)
[![License](https://img.shields.io/github/license/X-Profiler/xprofiler)](LICENSE)

Expand Down
8 changes: 4 additions & 4 deletions test/start.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ describe(`xprofiler starting`, function () {
expect(aliveProcess[1]).to.be(logdir);
});

it(`.xprofiler cwd: ${aliveProcess[2]} should be ${/^([.\w()/\\:-]+|)$/}`, function () {
expect(/^([.\w()/\\:-]+|)$/.test(aliveProcess[2])).to.be.ok();
it(`.xprofiler cwd: ${aliveProcess[2]} should be ${/^([.\w\(\)\/\\:-@]+|)$/}`, function () {
expect(/^([.\w\(\)\/\\:-@]+|)$/.test(aliveProcess[2])).to.be.ok();
});

it(`.xprofiler executable: ${aliveProcess[3]} should be node-${process.version}`, function () {
Expand All @@ -66,8 +66,8 @@ describe(`xprofiler starting`, function () {
expect(version).to.be(process.version);
});

it(`.xprofiler file: ${aliveProcess[4]} should be ${/^([.\w()/\\:-]+|)$/}`, function () {
expect(/^([.\w()/\\:-]+|)$/.test(aliveProcess[4])).to.be.ok();
it(`.xprofiler file: ${aliveProcess[4]} should be ${/^([.\w\(\)\/\\:-@]+|)$/}`, function () {
expect(/^([.\w\(\)\/\\:-@]+|)$/.test(aliveProcess[4])).to.be.ok();
});

it(`.xprofiler module path: ${aliveProcess[5]} should be ${path.join(__dirname, '..')}`, function () {
Expand Down

0 comments on commit 57bb0eb

Please # to comment.