diff options
author | Brian White <mscdex@mscdex.net> | 2017-03-13 14:50:57 -0400 |
---|---|---|
committer | Franziska Hinkelmann <franzih@chromium.org> | 2017-03-29 10:53:28 +0200 |
commit | 61ebfa8d1fcb468cb95fdf3742e1672e48672b32 (patch) | |
tree | d27fc28ee4734f50b8afd8cce2ec7fa28992982d /test/parallel/test-repl-definecommand.js | |
parent | 678480e328c1fdd152973695e978e0f02b489770 (diff) | |
download | android-node-v8-61ebfa8d1fcb468cb95fdf3742e1672e48672b32.tar.gz android-node-v8-61ebfa8d1fcb468cb95fdf3742e1672e48672b32.tar.bz2 android-node-v8-61ebfa8d1fcb468cb95fdf3742e1672e48672b32.zip |
tools: add unescaped regexp dot rule to linter
PR-URL: https://github.com/nodejs/node/pull/11834
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Diffstat (limited to 'test/parallel/test-repl-definecommand.js')
-rw-r--r-- | test/parallel/test-repl-definecommand.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/parallel/test-repl-definecommand.js b/test/parallel/test-repl-definecommand.js index 07732d534e..f879043b94 100644 --- a/test/parallel/test-repl-definecommand.js +++ b/test/parallel/test-repl-definecommand.js @@ -35,8 +35,9 @@ r.defineCommand('say2', function() { }); inputStream.write('.help\n'); -assert(/\n.say1 help for say1\n/.test(output), 'help for say1 not present'); -assert(/\n.say2\n/.test(output), 'help for say2 not present'); +assert(/\n\.say1 help for say1\n/.test(output), + 'help for say1 not present'); +assert(/\n\.say2\n/.test(output), 'help for say2 not present'); inputStream.write('.say1 node developer\n'); assert(/> hello node developer/.test(output), 'say1 outputted incorrectly'); inputStream.write('.say2 node developer\n'); |