expect库里match方法
expect('football').to.match(^/foo/);报错“unexpected token ^”,
我改为expect('football').to.match(/foo/);通过了。
请问第一个写法为什么不对啊?
expect('football').to.match(^/foo/);报错“unexpected token ^”,
我改为expect('football').to.match(/foo/);通过了。
请问第一个写法为什么不对啊?
2017-03-30
举报