@@ -67,28 +67,36 @@ const properties = [
6767describe ( 'inspekter-plugin-javascript' , ( ) => {
6868 describe ( 'analyze' , ( ) => {
6969 it ( 'should always return an array' , ( ) => {
70- const source = [ 'fixtures/file1.js' ]
70+ const source = [ 'test/ fixtures/file1.js' ]
7171 const actual = ipj . analyze ( source )
7272
7373 expect ( actual ) . to . be . an ( 'array' )
7474 expect ( actual ) . to . have . lengthOf ( 1 )
7575 } )
7676
7777 it ( 'should return one report object for each file' , ( ) => {
78- const source = [ 'fixtures/file1.js' , 'fixtures/file2.js' ]
78+ const source = [ 'test/ fixtures/file1.js' , 'test/ fixtures/file2.js' ]
7979 const actual = ipj . analyze ( source )
8080
8181 expect ( actual ) . to . be . an ( 'array' )
8282 expect ( actual ) . to . have . lengthOf ( 2 )
8383 } )
8484
8585 it ( 'should return an object with all standard properties' , ( ) => {
86- const source = [ 'fixtures/file1.js' ]
86+ const source = [ 'test/ fixtures/file1.js' ]
8787 const actual = ipj . analyze ( source ) [ 0 ]
8888
8989 properties . forEach ( ( property ) => {
9090 expect ( actual ) . to . have . nested . property ( property . name ) . that . is . a ( property . type )
9191 } )
9292 } )
9393 } )
94+
95+ describe ( 'getExtension' , ( ) => {
96+ it ( 'should return js' , ( ) => {
97+ const actual = ipj . getExtension ( )
98+
99+ expect ( actual ) . to . equal ( 'js' )
100+ } )
101+ } )
94102} )
0 commit comments