@@ -666,39 +666,39 @@ describe('Array.convert', function(){
666
666
} ) ;
667
667
} ) ;
668
668
669
- describe ( 'String.from ' , function ( ) {
669
+ describe ( 'String.convert ' , function ( ) {
670
670
671
671
it ( 'should convert to type string' , function ( ) {
672
- expect ( typeOf ( String . from ( 'string' ) ) ) . to . equal ( 'string' ) ;
673
- expect ( typeOf ( String . from ( 1 ) ) ) . to . equal ( 'string' ) ;
674
- expect ( typeOf ( String . from ( new Date ) ) ) . to . equal ( 'string' ) ;
675
- expect ( typeOf ( String . from ( function ( ) { } ) ) ) . to . equal ( 'string' ) ;
672
+ expect ( typeOf ( String . convert ( 'string' ) ) ) . to . equal ( 'string' ) ;
673
+ expect ( typeOf ( String . convert ( 1 ) ) ) . to . equal ( 'string' ) ;
674
+ expect ( typeOf ( String . convert ( new Date ) ) ) . to . equal ( 'string' ) ;
675
+ expect ( typeOf ( String . convert ( function ( ) { } ) ) ) . to . equal ( 'string' ) ;
676
676
} ) ;
677
677
678
678
} ) ;
679
679
680
- describe ( 'Function.from ' , function ( ) {
680
+ describe ( 'Function.convert ' , function ( ) {
681
681
682
682
it ( 'if a function is passed in that function should be returned' , function ( ) {
683
683
var fn = function ( a ) { return a ; } ;
684
- expect ( Function . from ( fn ) ) . to . equal ( fn ) ;
684
+ expect ( Function . convert ( fn ) ) . to . equal ( fn ) ;
685
685
} ) ;
686
686
687
687
it ( 'should return a function that returns the value passed when called' , function ( ) {
688
- expect ( Function . from ( 'hello world!' ) ( ) ) . to . equal ( 'hello world!' ) ;
688
+ expect ( Function . convert ( 'hello world!' ) ( ) ) . to . equal ( 'hello world!' ) ;
689
689
} ) ;
690
690
691
691
} ) ;
692
692
693
- describe ( 'Number.from ' , function ( ) {
693
+ describe ( 'Number.convert ' , function ( ) {
694
694
695
695
it ( 'should return the number representation of a string' , function ( ) {
696
- expect ( Number . from ( '10' ) ) . to . equal ( 10 ) ;
697
- expect ( Number . from ( '10px' ) ) . to . equal ( 10 ) ;
696
+ expect ( Number . convert ( '10' ) ) . to . equal ( 10 ) ;
697
+ expect ( Number . convert ( '10px' ) ) . to . equal ( 10 ) ;
698
698
} ) ;
699
699
700
700
it ( 'should return null when it fails to return a number type' , function ( ) {
701
- expect ( Number . from ( 'ciao' ) ) . to . equal ( null ) ;
701
+ expect ( Number . convert ( 'ciao' ) ) . to . equal ( null ) ;
702
702
} ) ;
703
703
704
704
} ) ;
0 commit comments