File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -111,14 +111,14 @@ async function mockserver() {
111111 requestXml . includes ( '<Surname>' )
112112 ) {
113113 const match = requestXml . match ( '<Surname>(.*?)<' ) ;
114- if ( 'Carlsson' . includes ( match ) ) {
115- responsePath = 'src/responses/user/Carlsson.xml' ;
114+ if ( ( 'carlsson' ) . startsWith ( match [ 1 ] . toLowerCase ( ) ) ) {
115+ responsePath = 'src/responses/user/' + method + '/ Carlsson.xml';
116116 }
117- else if ( 'Beckley' . includes ( match ) ) {
118- responsePath = 'src/responses/user/Beckley.xml' ;
117+ else if ( ( 'beckley' ) . startsWith ( match [ 1 ] . toLowerCase ( ) ) ) {
118+ responsePath = 'src/responses/user/' + method + '/ Beckley.xml';
119119 }
120- else if ( 'Nilsson' . includes ( match ) ) {
121- responsePath = 'src/responses/user/Nilsson.xml' ;
120+ else if ( ( 'nilsson' ) . startsWith ( match [ 1 ] . toLowerCase ( ) ) ) {
121+ responsePath = 'src/responses/user/' + method + '/ Nilsson.xml';
122122 }
123123 else {
124124 responsePath = 'src/responses/user/' + method + '.xml' ;
You can’t perform that action at this time.
0 commit comments