【发布时间】:2014-11-06 00:46:45
【问题描述】:
我注意到,当我使用 toMatch 制定 Jasmine Expect 并且匹配的字符串包含 ( 时,它将失败。有没有其他人注意到这一点?如果有,你做了什么?
例子
当它应该返回“True”时失败或返回“False”
expect("test (test) with other stuff").toMatch("test (test)");
这传递并返回“True”
expect("test %test% with other stuff").toMatch("test %test%");
【问题讨论】:
标签: regex angularjs unit-testing jasmine protractor