Unit testing JSSpec中不可获得值的测试
我正在学习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
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代码