File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
turbopack/crates/turbopack-core/src/resolve Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -889,6 +889,43 @@ mod tests {
889889 Pattern :: Constant ( rcstr!( "/file" ) ) ,
890890 ] ) )
891891 ) ;
892+
893+ // TODO see parse_concatenation_pattern
894+ // assert_eq!(
895+ // Request::Alternatives {
896+ // requests: vec![
897+ // Request::Module {
898+ // module: Pattern::Concatenation(vec![
899+ // Pattern::Constant(rcstr!("prefix")),
900+ // Pattern::Dynamic,
901+ // Pattern::Constant(rcstr!("suffix")),
902+ // ]),
903+ // path: rcstr!("subpath").into(),
904+ // query: rcstr!(""),
905+ // fragment: rcstr!(""),
906+ // }
907+ // .resolved_cell(),
908+ // Request::Module {
909+ // module: Pattern::Concatenation(vec![
910+ // Pattern::Constant(rcstr!("prefix")),
911+ // Pattern::Dynamic,
912+ // ]),
913+ // path: Pattern::Concatenation(vec![
914+ // Pattern::Dynamic,
915+ // Pattern::Constant(rcstr!("suffix/subpath")),
916+ // ]),
917+ // query: rcstr!(""),
918+ // fragment: rcstr!(""),
919+ // }
920+ // .resolved_cell()
921+ // ]
922+ // },
923+ // Request::parse_ref(Pattern::Concatenation(vec![
924+ // Pattern::Constant(rcstr!("prefix")),
925+ // Pattern::Dynamic,
926+ // Pattern::Constant(rcstr!("suffix/subpath")),
927+ // ]))
928+ // );
892929 }
893930
894931 #[ test]
You can’t perform that action at this time.
0 commit comments