'to.include' 在 'to.eventually.equal' 有效的地方无效
'to.include' is not working where 'to.eventually.equal' is working
我正在尝试检查另一个字符串中是否存在一个字符串 string.I 我正在使用以下代码
expect(actualTimeZone).to.include(employee.timeZone);
但出现以下错误
AssertionError: object tested must be an array, a map, an object, a set, a string, or a weakset, but object given
但是当我尝试使用下面的代码时,它并没有抛出上面的错误
expect(actualTimeZone).to.eventually.equal(employee.timeZone);
我正在使用黄瓜和 javascript 开发量角器框架。有人可以帮忙解决这个问题
我尝试使用下面的代码,它正在运行
expect(actualTimeZone).to.eventually.include(employee.timeZone);
我正在尝试检查另一个字符串中是否存在一个字符串 string.I 我正在使用以下代码
expect(actualTimeZone).to.include(employee.timeZone);
但出现以下错误
AssertionError: object tested must be an array, a map, an object, a set, a string, or a weakset, but object given
但是当我尝试使用下面的代码时,它并没有抛出上面的错误
expect(actualTimeZone).to.eventually.equal(employee.timeZone);
我正在使用黄瓜和 javascript 开发量角器框架。有人可以帮忙解决这个问题
我尝试使用下面的代码,它正在运行
expect(actualTimeZone).to.eventually.include(employee.timeZone);