11import test from 'ava' ;
22import Core from '../../lib/core' ;
3+
34const Functions = Core . Functions ;
45
5- test ( 'call_property' , t => {
6+ test ( 'call_property' , ( t ) => {
67 t . is ( Functions . call_property ( 1 , 'toString' ) , '1' ) ;
78 t . is ( Functions . call_property ( [ ] , 'toString' ) , '' ) ;
89 t . is ( Functions . call_property ( [ ] , 'length' ) , 0 ) ;
@@ -13,27 +14,27 @@ test('call_property', t => {
1314 t . is ( Functions . call_property ( { id : 0 } , 'id' ) , 0 ) ;
1415} ) ;
1516
16- test ( 'split_at' , t => {
17+ test ( 'split_at' , ( t ) => {
1718 t . deepEqual ( Functions . split_at ( 'sweetelixir' , 5 ) . values , [ 'sweet' , 'elixir' ] ) ;
1819 t . deepEqual ( Functions . split_at ( 'sweetelixir' , - 6 ) . values , [
1920 'sweet' ,
20- 'elixir'
21+ 'elixir' ,
2122 ] ) ;
2223 t . deepEqual ( Functions . split_at ( 'abc' , 0 ) . values , [ '' , 'abc' ] ) ;
2324 t . deepEqual ( Functions . split_at ( 'abc' , 1000 ) . values , [ 'abc' , '' ] ) ;
2425 t . deepEqual ( Functions . split_at ( 'abc' , - 1000 ) . values , [ '' , 'abc' ] ) ;
2526 t . deepEqual ( Functions . split_at ( '😀abélkm' , 4 ) . values , [ '😀abé' , 'lkm' ] ) ;
2627} ) ;
2728
28- test ( 'map_to_object/2' , t => {
29+ test ( 'map_to_object/2' , ( t ) => {
2930 const map = new Map ( [
30- [ Symbol . for ( 'key' ) , " value" ] ,
31- [ Symbol . for ( 'anotherKey' ) , " value2" ] ,
31+ [ Symbol . for ( 'key' ) , ' value' ] ,
32+ [ Symbol . for ( 'anotherKey' ) , ' value2' ] ,
3233 ] ) ;
3334
3435 const options = [ new Core . Tuple ( Symbol . for ( 'keys' ) , Symbol . for ( 'strings' ) ) ] ;
3536
3637 const result = Functions . map_to_object ( map , options ) ;
3738
38- t . deepEqual ( result , { key : " value" , anotherKey : " value2" } ) ;
39+ t . deepEqual ( result , { key : ' value' , anotherKey : ' value2' } ) ;
3940} ) ;
0 commit comments