2015-02-06 2 views
0

fridy.js와 Jasmine을 사용하여 Enide Studio에서 나머지 API 테스트를 실행하려고합니다. 그것은 잘 작동 재스민이 정의되지 않았습니다.

C:\Users\xxxx\AppData\Roaming\npm\node_modules\frisby\lib\frisby.js:1125 
jasmine.Matchers.prototype.toMatchOrBeNull = function(expected) { 
^ 
ReferenceError: jasmine is not defined 
    at Object.<anonymous> (C:\Users\xxxx\AppData\Roaming\npm\node_modules\frisby\lib\frisby.js:1125:1) 
    at Module._compile (module.js:456:26) 
    at Object.Module._extensions..js (module.js:474:10) 
    at Module.load (module.js:356:32) 
    at Function.Module._load (module.js:312:12) 
    at Module.require (module.js:364:17) 
    at require (module.js:380:17) 
    at Object.<anonymous> (C:\Users\xxxx\Desktop\Enide-Studio-2014.17-luna-SR1-win64\ws\SampleProject\.settings\sample_spec.js:4:12) 
    at Module._compile (module.js:456:26) 
    at Object.Module._extensions..js (module.js:474:10) 

내가 노트 패드에서 동일한 스크립트를 시도하고 CLI를 사용하여 실행 :

나는이 오류가 발생했습니다.

IDE에서 실행해야하므로 도와주세요.

+0

당신이 "노드 응용 프로그램"으로 실행을 클릭하여 테스트 – Joey

+0

을 시작하려면 어떻게해야 다음과 같이

cd node_modules git clone https://github.com/m0x72/frisby.git npm install qs npm install jsonschema npm install stack-trace 

당신은 당신의 테스트 파일에 포함 할 수있다 –

답변

1

Jasmine 2.x로 마이그레이션 한 후에 비슷한 문제가있었습니다. 2.x가 현재 Frisby에서 지원되지 않는다는 것이 명백 해졌다. 비록 프리스비 포크 https://github.com/m0x72/frisby이이 탐침을 해결합니다.

// var frisby = require('frisby'); 
var frisby = require('frisby-master'); 
관련 문제