File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
docs/.vuepress/components Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1515 <option value =" trace" >TRACE</option >
1616 <option value =" patch" >PATCH</option >
1717 </select >
18+ <h4 >Strict mode</h4 >
19+ <label ><input type =" checkbox" v-model =" strictMode" > Use strict mode</label >
1820 <h4 >Possible fixtures (in order of specificity)</h4 >
1921 <ol v-if =" fixtures.length" >
2022 <li v-for =" fixture in fixtures" >/path/to/fixtures/{{ fixture }}</li >
196198 data () {
197199 return {
198200 url: ' ' ,
199- method: ' get'
201+ method: ' get' ,
202+ strictMode: false
200203 };
201204 },
202205
223226 fixtures .push (` ${ url .hostname }${ pathname} .${ this .method } .mock` );
224227 fixtures .push (` ${ url .hostname }${ pathname} .mock` );
225228
229+ if (this .strictMode ) {
230+ fixtures = fixtures .slice (0 , 1 );
231+ }
232+
226233 return fixtures;
227234 }
228235 },
You can’t perform that action at this time.
0 commit comments