@@ -28,23 +28,23 @@ describe('init', () => {
2828 // Then
2929 expect ( renderSelectPrompt ) . toHaveBeenCalledWith ( {
3030 choices : [
31- { label : 'Build a Remix app (recommended)' , value : 'remix ' } ,
31+ { label : 'Build a React Router app (recommended)' , value : 'reactRouter ' } ,
3232 { label : 'Build an extension-only app' , value : 'none' } ,
3333 ] ,
3434 message : 'Get started building your app:' ,
35- defaultValue : 'remix ' ,
35+ defaultValue : 'reactRouter ' ,
3636 } )
3737 expect ( got ) . toEqual ( { ...options , ...answers , templateType : 'none' , globalCLIResult} )
3838 } )
3939
4040 test ( 'it renders branches for templates that have them' , async ( ) => {
4141 const answers = {
42- template : 'https://github.com/Shopify/shopify-app-template-remix #javascript' ,
42+ template : 'https://github.com/Shopify/shopify-app-template-react-router #javascript' ,
4343 }
4444 const options : InitOptions = { }
4545
4646 // Given
47- vi . mocked ( renderSelectPrompt ) . mockResolvedValueOnce ( 'remix ' )
47+ vi . mocked ( renderSelectPrompt ) . mockResolvedValueOnce ( 'reactRouter ' )
4848 vi . mocked ( renderSelectPrompt ) . mockResolvedValueOnce ( 'javascript' )
4949
5050 // When
@@ -53,19 +53,19 @@ describe('init', () => {
5353 // Then
5454 expect ( renderSelectPrompt ) . toHaveBeenCalledWith ( {
5555 choices : [
56- { label : 'Build a Remix app (recommended)' , value : 'remix ' } ,
56+ { label : 'Build a React Router app (recommended)' , value : 'reactRouter ' } ,
5757 { label : 'Build an extension-only app' , value : 'none' } ,
5858 ] ,
5959 message : 'Get started building your app:' ,
60- defaultValue : 'remix ' ,
60+ defaultValue : 'reactRouter ' ,
6161 } )
6262 expect ( renderSelectPrompt ) . toHaveBeenCalledWith ( {
6363 choices : [
6464 { label : 'JavaScript' , value : 'javascript' } ,
6565 { label : 'TypeScript' , value : 'main' } ,
6666 ] ,
67- message : 'For your Remix template, which language do you want?' ,
67+ message : 'For your React Router template, which language do you want?' ,
6868 } )
69- expect ( got ) . toEqual ( { ...options , ...answers , templateType : 'remix ' , globalCLIResult} )
69+ expect ( got ) . toEqual ( { ...options , ...answers , templateType : 'reactRouter ' , globalCLIResult} )
7070 } )
7171} )
0 commit comments