0
JSSpec을 배우고 있습니다. 여기 내 문제가있다. 이 코드에서 JSSpec에서 얻을 수없는 값의 테스트
:observer.URLforTests_lg).should_match(/ui=527bd5b5d689e2c32ae974c6229ff785/);
의 값
527bd5b5d689e2c32ae974c6229ff785
이 어디에서 오는지
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/);
}
는 이해가 안 돼요. 내 프로젝트에서이 문자열을 찾았지만 정의 된 위치를 찾지 못했습니다 (있는 경우).