File tree Expand file tree Collapse file tree 3 files changed +31
-1
lines changed
Expand file tree Collapse file tree 3 files changed +31
-1
lines changed Original file line number Diff line number Diff line change 1010( function ( root ) {
1111 'use strict' ;
1212
13- if ( typeof _ ( ) != 'undefined' ) {
13+ if ( typeof _ != 'undefined' ) {
1414 var _reverse = _ ( ) . reverse ,
1515 _include = _ . include ;
1616 }
Original file line number Diff line number Diff line change 1+ $ ( document ) . ready ( function ( ) {
2+
3+ module ( "String extensions" ) ;
4+
5+ test ( "underscore not included" , function ( ) {
6+ raises ( function ( ) { _ ( "foo" ) } , / T y p e E r r o r / ) ;
7+ } ) ;
8+
9+ test ( "provides standalone functions" , function ( ) {
10+ equals ( typeof _ . trim , "function" ) ;
11+ } ) ;
12+ } ) ;
Original file line number Diff line number Diff line change 1+ <!DOCTYPE HTML>
2+ < html >
3+ < head >
4+ < title > Underscore.strings Test Suite</ title >
5+ < link rel ="stylesheet " href ="https://github.com/jquery/qunit/raw/master/qunit/qunit.css " type ="text/css " media ="screen " />
6+ < script type ="text/javascript " src ="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js "> </ script >
7+ < script type ="text/javascript " src ="https://github.com/jquery/qunit/raw/master/qunit/qunit.js "> </ script >
8+ < script type ="text/javascript " src ="../lib/underscore.string.js "> </ script >
9+ < script type ="text/javascript " src ="strings_standalone.js "> </ script >
10+
11+ </ head >
12+ < body >
13+ < h1 id ="qunit-header "> Underscore.string Test Suite</ h1 >
14+ < h2 id ="qunit-banner "> </ h2 >
15+ < h2 id ="qunit-userAgent "> </ h2 >
16+ < ol id ="qunit-tests "> </ ol >
17+ </ body >
18+ </ html >
You can’t perform that action at this time.
0 commit comments