Skip to content

Commit

Permalink
fixes comma in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
romanresh committed Jun 14, 2019
1 parent 19a6725 commit fc02df3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
## [1.5.0]
- Added the TestCafe headless mode [#32](https://github.com/romanresh/vscode-testcafe/issues/32).
- Use the built-in TestCafe live mode instead of the testcafe-live package.
- Fix tests contained the comma symbol [#25](https://github.com/romanresh/vscode-testcafe/issues/32)

## [1.4.5]
- Minor fixes.
Expand Down
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as vscode from 'vscode';
import * as fs from 'fs';
import * as path from 'path';

const TEST_OR_FIXTURE_RE = /(^|;|\s+|\/\/|\/\*)fixture\s*(\(.+?\)|`.+?`)|(^|;|\s+|\/\/|\/\*)test\s*(?:\.[a-zA-Z]+\([^\)]*\))*\s*\(\s*(.+?)\s*,/gm;
const TEST_OR_FIXTURE_RE = /(^|;|\s+|\/\/|\/\*)fixture\s*(\(.+?\)|`.+?`)|(^|;|\s+|\/\/|\/\*)test\s*(?:\.[a-zA-Z]+\([^\)]*\))*\s*\(\s*(.+?)\s*('|")\s*,/gm;
const CLEANUP_TEST_OR_FIXTURE_NAME_RE = /(^\(?\s*(\'|"|`))|((\'|"|`)\s*\)?$)/g;
const BROWSER_ALIASES = ['ie', 'firefox', 'chrome', 'chrome-canary', 'chromium', 'opera', 'safari', 'edge'];
const TESTCAFE_PATH = "./node_modules/testcafe/lib/cli/index.js";
Expand Down

0 comments on commit fc02df3

Please sign in to comment.