@@ -40,10 +40,7 @@ exports.Server = function Server(bsClient, workers) {
4040 ] ;
4141
4242 var framework_scripts = {
43- 'qunit' : [ 'qunit-plugin.js' ] ,
44- 'jasmine' : [ 'jasmine-jsreporter.js' , 'jasmine-plugin.js' ] ,
45- 'jasmine2' : [ 'jasmine2-plugin.js' ] ,
46- 'mocha' : [ 'mocha-plugin.js' ]
43+ 'jasmine' : [ 'jasmine-jsreporter.js' , 'jasmine-plugin.js' ]
4744 } ;
4845
4946 var filePath = path . relative ( process . cwd ( ) , filename ) ;
@@ -64,18 +61,8 @@ exports.Server = function Server(bsClient, workers) {
6461 patch += '<script type="text/javascript" src="/_patch/' + script + '"></script>\n' ;
6562 } ) ;
6663 patch += '<script type="text/javascript">jasmine.getEnv().addReporter(new jasmine.JSReporter());</script>\n' ;
67- } else if ( framework === 'jasmine2' ) {
68- framework_scripts [ 'jasmine2' ] . forEach ( function ( script ) {
69- patch += '<script type="text/javascript" src="/_patch/' + script + '"></script>\n' ;
70- } ) ;
71- } else if ( framework === 'mocha' ) {
72- framework_scripts [ 'mocha' ] . forEach ( function ( script ) {
73- patch += '<script type="text/javascript" src="/_patch/' + script + '"></script>\n' ;
74- } ) ;
75- } else if ( framework === 'qunit' ) {
76- framework_scripts [ 'qunit' ] . forEach ( function ( script ) {
77- patch += '<script type="text/javascript" src="/_patch/' + script + '"></script>\n' ;
78- } ) ;
64+ } else {
65+ patch += '<script type="text/javascript" src="/_patch/reporter.js"></script>\n' ;
7966 }
8067 patch += '</' + tag_name + '>' ;
8168 return patch ;
0 commit comments