1- const path = require ( "path" )
21const { parseManifest, modifyManifest } = require ( "../index" )
32
43test ( "The manifest should be parsed correctly" , async ( ) => {
@@ -35,12 +34,7 @@ test("The manifest should be modified correctly if tests are enabled", async ()
3534 const lastModule = modifiedManifest [ "modules" ] . slice ( - 1 ) [ 0 ]
3635 expect ( lastModule . name ) . toBe ( "testproject" )
3736 expect ( lastModule [ "run-tests" ] ) . toBe ( true )
38- expect ( lastModule . sources ) . toEqual ( [
39- {
40- type : "dir" ,
41- path : ".." ,
42- } ,
43- ] )
37+
4438} )
4539
4640test ( "The manifest should be modified correctly if tests are enabled & has a build-options" , async ( ) => {
@@ -64,12 +58,7 @@ test("The manifest should be modified correctly if tests are enabled & has a bui
6458 const lastModule = modifiedManifest [ "modules" ] . slice ( - 1 ) [ 0 ]
6559 expect ( lastModule . name ) . toBe ( "contrast" )
6660 expect ( lastModule [ "run-tests" ] ) . toBe ( true )
67- expect ( lastModule . sources ) . toEqual ( [
68- {
69- type : "dir" ,
70- path : ".." ,
71- } ,
72- ] )
61+
7362} )
7463
7564test ( "The manifest should be modified correctly if in a subdirectory" , async ( ) => {
@@ -81,10 +70,5 @@ test("The manifest should be modified correctly if in a subdirectory", async ()
8170 const lastModule = modifiedManifest [ "modules" ] . slice ( - 1 ) [ 0 ]
8271 expect ( lastModule . name ) . toBe ( "testproject" )
8372 expect ( lastModule [ "run-tests" ] ) . toBe ( false )
84- expect ( lastModule . sources ) . toEqual ( [
85- {
86- type : "dir" ,
87- path : "../.." ,
88- } ,
89- ] )
73+
9074} )
0 commit comments