@@ -7,6 +7,7 @@ import { IRIS_DOAP, IRIS_OO, IRIS_RDF } from '../../lib/rdf/Iris';
77
88const quad = require ( 'rdf-quad' ) ;
99
10+ // eslint-disable-next-line jest/no-mocks-import
1011const Hello = require ( '../../__mocks__/helloworld' ) . Hello ;
1112
1213jest . mock < typeof import ( 'winston' ) > ( 'winston' , ( ) => ( {
@@ -31,10 +32,10 @@ describe('construction with component configs as files', () => {
3132 let manager : ComponentsManager < any > ;
3233 beforeEach ( async ( ) => {
3334 moduleState = < any > {
34- mainModulePath : ` ${ __dirname } / ../../__mocks__` ,
35+ mainModulePath : Path . join ( __dirname , ' ../../__mocks__' ) ,
3536 importPaths : {
36- 'http://example.org/' : `${ __dirname } /.. /` ,
37- 'https://linkedsoftwaredependencies.org/bundles/npm/example/^1.0.0/config/' : `${ __dirname } / ../assets/` ,
37+ 'http://example.org/' : `${ Path . join ( __dirname , '..' ) } /` ,
38+ 'https://linkedsoftwaredependencies.org/bundles/npm/example/^1.0.0/config/' : `${ Path . join ( __dirname , ' ../assets' ) } /` ,
3839 } ,
3940 packageJsons : { } ,
4041 } ;
@@ -403,7 +404,9 @@ describe('construction with component configs as files', () => {
403404 mainModulePath : __dirname ,
404405 moduleState,
405406 async moduleLoader ( registry ) {
406- await registry . registerModule ( Path . join ( __dirname , '../assets/module-inheritableparams-subclassmapping.jsonld' ) ) ;
407+ await registry . registerModule (
408+ Path . join ( __dirname , '../assets/module-inheritableparams-subclassmapping.jsonld' ) ,
409+ ) ;
407410 } ,
408411 } ) ;
409412 } ) ;
@@ -510,7 +513,9 @@ describe('construction with component configs as files', () => {
510513 mainModulePath : __dirname ,
511514 moduleState,
512515 async moduleLoader ( registry ) {
513- await registry . registerModule ( Path . join ( __dirname , '../assets/module-inheritableparams-subclassmapping-dynamicentries.jsonld' ) ) ;
516+ await registry . registerModule (
517+ Path . join ( __dirname , '../assets/module-inheritableparams-subclassmapping-dynamicentries.jsonld' ) ,
518+ ) ;
514519 } ,
515520 } ) ;
516521 } ) ;
@@ -567,7 +572,9 @@ describe('construction with component configs as files', () => {
567572 mainModulePath : __dirname ,
568573 moduleState,
569574 async moduleLoader ( registry ) {
570- await registry . registerModule ( Path . join ( __dirname , '../assets/module-inheritableparams-dynamicentries.jsonld' ) ) ;
575+ await registry . registerModule (
576+ Path . join ( __dirname , '../assets/module-inheritableparams-dynamicentries.jsonld' ) ,
577+ ) ;
571578 } ,
572579 } ) ;
573580 } ) ;
0 commit comments