Merge pull request #8585 from pranayberry/fix/increment-decrement-issue
Fixed increment and decrement issuepull/8592/head
commit
19b4410fb2
|
@ -453,7 +453,7 @@
|
|||
"tests": [
|
||||
"assert(myVar === 88, 'message: <code>myVar</code> should equal <code>88</code>');",
|
||||
"assert(/myVar\\s*\\=.*myVar/.test(code) === false, 'message: <code>myVar = myVar</code> should be changed');",
|
||||
"assert(/myVar\\s*[+]{2}/.test(code), 'message: Use the <code>++</code> operator');",
|
||||
"assert(/[+]{2}\\s*myVar|myVar\\s*[+]{2}/.test(code), 'message: Use the <code>++</code> operator');",
|
||||
"assert(/var myVar = 87;/.test(code), 'message: Do not change code above the line');"
|
||||
],
|
||||
"type": "waypoint",
|
||||
|
@ -497,7 +497,7 @@
|
|||
],
|
||||
"tests": [
|
||||
"assert(myVar === 10, 'message: <code>myVar</code> should equal <code>10</code>');",
|
||||
"assert(/myVar\\s*[-]{2}/.test(code), 'message: Use the <code>--</code> operator on <code>myVar</code>');",
|
||||
"assert(/[-]{2}\\s*myVar|myVar\\s*[-]{2}/.test(code), 'message: Use the <code>--</code> operator on <code>myVar</code>');",
|
||||
"assert(/var myVar = 11;/.test(code), 'message: Do not change code above the line');"
|
||||
],
|
||||
"type": "waypoint",
|
||||
|
|
Loading…
Reference in New Issue