Skip to content
Snippets Groups Projects
Verified Commit ddddd508 authored by Dave Long's avatar Dave Long
Browse files

Issue #3503556 by tom konda: Wrong Regular Expression for string comparison in...

Issue #3503556 by tom konda: Wrong Regular Expression for string comparison in Nightwatch.js assertion

(cherry picked from commit daf3cd72)
parent 8d57f751
No related branches found
No related tags found
No related merge requests found
Pipeline #415498 passed
...@@ -7,7 +7,7 @@ module.exports.assertion = function (expected) { ...@@ -7,7 +7,7 @@ module.exports.assertion = function (expected) {
const deprecationMessages = const deprecationMessages =
sessionStorageEntries !== null sessionStorageEntries !== null
? sessionStorageEntries.filter((message) => ? sessionStorageEntries.filter((message) =>
new RegExp('[Deprecation]').test(message), message.includes('[Deprecation]'),
) )
: []; : [];
......
...@@ -7,7 +7,7 @@ module.exports.assertion = function () { ...@@ -7,7 +7,7 @@ module.exports.assertion = function () {
const deprecationMessages = const deprecationMessages =
sessionStorageEntries !== null sessionStorageEntries !== null
? sessionStorageEntries.filter((message) => ? sessionStorageEntries.filter((message) =>
new RegExp('[Deprecation]').test(message), message.includes('[Deprecation]'),
) )
: []; : [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment