File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -135,8 +135,10 @@ test("_dirExists: Directory exists", async (t) => {
135135
136136test ( "_dirExists: Missing leading slash" , async ( t ) => {
137137 const project = await Specification . create ( t . context . basicProjectInput ) ;
138- const bExists = await project . _dirExists ( "webapp" ) ;
139- t . false ( bExists , "directory is not found" ) ;
138+
139+ await t . throwsAsync ( project . _dirExists ( "webapp" ) , {
140+ message : "Failed to resolve virtual path 'webapp': Path must be absolute"
141+ } ) ;
140142} ) ;
141143
142144test ( "_dirExists: Trailing slash is ok" , async ( t ) => {
@@ -148,8 +150,9 @@ test("_dirExists: Trailing slash is ok", async (t) => {
148150test ( "_dirExists: Directory is a file" , async ( t ) => {
149151 const project = await Specification . create ( t . context . basicProjectInput ) ;
150152
151- const bExists = await project . _dirExists ( "webapp/index.html" ) ;
152- t . false ( bExists , "directory is a file" ) ;
153+ await t . throwsAsync ( project . _dirExists ( "webapp/index.html" ) , {
154+ message : "Failed to resolve virtual path 'webapp/index.html': Path must be absolute"
155+ } ) ;
153156} ) ;
154157
155158test ( "_dirExists: Directory does not exist" , async ( t ) => {
You can’t perform that action at this time.
0 commit comments