Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/unit-testing/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Unit testing JSSpec中不可获得值的测试_Unit Testing_Testing - Fatal编程技术网

Unit testing JSSpec中不可获得值的测试

Unit testing JSSpec中不可获得值的测试,unit-testing,testing,Unit Testing,Testing,我正在学习JSSpec。这是我的问题 在此代码中: describe("Buttons' events", { 'when I click on a button with an id of #b1...': function() { click_me(document.getElementById("b1")); }, '...then URL should have a parameter b with the value someURL1 and a parameter ui

我正在学习JSSpec。这是我的问题

在此代码中:

describe("Buttons' events", {

'when I click on a button with an id of #b1...': function() {
    click_me(document.getElementById("b1"));
},

'...then URL should have a parameter b with the value someURL1 and a parameter ui with the value 527bd5b5d689e2c32ae974c6229ff785), because #b1\'s class is .testme': function() {
    value_of(observer.URLforTests_lg).should_match(/http:\/\/swkyb\.com:9000/);
    value_of(observer.URLforTests_lg).should_match(/ui=527bd5b5d689e2c32ae974c6229ff785/);
    value_of(observer.URLforTests_lg).should_match(/b=someURL1/);
    value_of(observer.URLforTests_lg).should_match(/s=tester/);
    value_of(observer.URLforTests_lg).should_match(/e=button/);
    value_of(observer.URLforTests_lg).should_match(/api=testv/);
}
我不明白
observer.URLforTests_lg.)中的值
527bd5b5d689e2c32ae974c6229ff785
应该在哪里匹配(/ui=527bd5b5d689e2c32ae974c6229ff785/)来自。
我在我的项目中查找了这个字符串,但没有找到它的定义位置(如果有)。

已解决:
527bd5b5d689e2c32ae974c6229ff785
只是项目配置文件中的
john
的md5代码