coffeescript 프로젝트 내에서 작동하는 nodeunit 모듈을 얻으려고하고 있지만 기본 테스트를 실행할 수없는 것으로 보입니다. 가 여기 내 예제 커피 스크립트 은 'nodeunit'불행하게도 test = true
test2 = false
exports.testSomething = (test) ->
test.expect(1)
Nodeunit을 사용하여 Node.js에 쓰고있는 모듈에 대한 테스트 슈트를 만들려고합니다. 이 모듈은 재생 목록에 트랙을 추가하고 제거 할 수있는 기본 음악 재생 목록입니다. var playlist = function(){
this.__playlist = [];
this.__count = 0;
};
playlist.prototyp
저는 자바 스크립트, node.js, coffeescript, nodeunit과 같은 전체 스택에 새로운 브랜드입니다. 단계별로해야한다고 생각하십니까? 당신 말이 맞을지도 모르지만 나는 아직도 그것을하지 않을 것입니다. testCase = require('nodeunit').testCase
Server = require('./web').WebServer