Skip to content

Commit

Permalink
simplified tests and made semi-colon optional
Browse files Browse the repository at this point in the history
  • Loading branch information
sanskriti2005 committed Apr 28, 2024
1 parent 594ded5 commit 184f9a0
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -15,15 +15,15 @@ You should call `console.log()`.

```js

assert.match(code, /console\.log\(.*\);/);
assert.match(code, /console\.log\(/);

```

You should call your `highPrecedence` function.

```js

assert.match(code, /console\.log\(highPrecedence\((?:"[^"]*"|[^)]*)\)\);/);
assert.match(code, /console\.log\(highPrecedence\(/);


```
Expand All @@ -32,7 +32,7 @@ Pass `5*3` as the argument

```js

assert.match(code, /console\.log\(highPrecedence\("5\*3"\)\);/);
assert.match(code, /console\.log\(highPrecedence\(["']5\*3["']\)\);?/);

```

Expand Down

0 comments on commit 184f9a0

Please sign in to comment.