@@ -28,10 +28,21 @@ public function testLocate()
2828 '/views/base.pug ' ,
2929 str_replace ('\\' , '/ ' , $ locator ->locate ('base ' , $ paths , $ extensions ))
3030 );
31+ self ::assertFileExists ($ locator ->locate ('base.pug ' , $ paths , $ extensions ));
3132 self ::assertStringEndsWith (
3233 '/views/base.pug ' ,
3334 str_replace ('\\' , '/ ' , $ locator ->locate ('base.pug ' , $ paths , $ extensions ))
3435 );
36+ self ::assertFileExists ($ locator ->locate ('first-module ' , $ paths , $ extensions ));
37+ self ::assertStringEndsWith (
38+ '/mixins/lib1/first-module.pug ' ,
39+ str_replace ('\\' , '/ ' , $ locator ->locate ('first-module ' , $ paths , $ extensions ))
40+ );
41+ self ::assertFileExists ($ locator ->locate ('first-module.pug ' , $ paths , $ extensions ));
42+ self ::assertStringEndsWith (
43+ '/mixins/lib1/first-module.pug ' ,
44+ str_replace ('\\' , '/ ' , $ locator ->locate ('first-module.pug ' , $ paths , $ extensions ))
45+ );
3546
3647 self ::assertFileExists ($ locator ->locate ('../layouts/base ' , $ paths , $ extensions ));
3748 self ::assertStringEndsWith (
0 commit comments