File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed
Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change @@ -42,3 +42,54 @@ test("Origin path isn’t included in output when targeting a file several level
4242 t . truthy ( pass ) ;
4343 t . is ( pass . getOutputPath ( ) , "_site/avatar.png" ) ;
4444} ) ;
45+
46+ test ( "Full input file path and deep input path" , t => {
47+ t . is (
48+ new TemplatePassthrough (
49+ "src/views/avatar.png" ,
50+ "_site" ,
51+ "src/views/"
52+ ) . getOutputPath ( ) ,
53+ "_site/avatar.png"
54+ ) ;
55+ t . is (
56+ new TemplatePassthrough (
57+ "src/views/avatar.png" ,
58+ "_site" ,
59+ "src/views"
60+ ) . getOutputPath ( ) ,
61+ "_site/avatar.png"
62+ ) ;
63+ t . is (
64+ new TemplatePassthrough (
65+ "src/views/avatar.png" ,
66+ "_site/" ,
67+ "src/views"
68+ ) . getOutputPath ( ) ,
69+ "_site/avatar.png"
70+ ) ;
71+ t . is (
72+ new TemplatePassthrough (
73+ "src/views/avatar.png" ,
74+ "./_site" ,
75+ "./src/views"
76+ ) . getOutputPath ( ) ,
77+ "_site/avatar.png"
78+ ) ;
79+ t . is (
80+ new TemplatePassthrough (
81+ "./src/views/avatar.png" ,
82+ "./_site/" ,
83+ "./src/views/"
84+ ) . getOutputPath ( ) ,
85+ "_site/avatar.png"
86+ ) ;
87+ t . is (
88+ new TemplatePassthrough (
89+ "./src/views/avatar.png" ,
90+ "_site" ,
91+ "src/views/"
92+ ) . getOutputPath ( ) ,
93+ "_site/avatar.png"
94+ ) ;
95+ } ) ;
You can’t perform that action at this time.
0 commit comments