Skip to content

Commit b23d74b

Browse files
committed
update test regex example
1 parent 812a394 commit b23d74b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_posts/tutorial-docs/2016-01-06-test-examples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ it('should be {a: 42}', function () {
6262
it('should include the variable "count"', function () {
6363
var regex = new RegExp('count');
6464
var string = target.toString();
65-
expect(string.match(regex)).to.be.true;
65+
expect(string).to.match(regex);
6666
});
6767
```
6868

0 commit comments

Comments
 (0)