@@ -102,31 +102,29 @@ describe('createTwilioFunction', () => {
102102 it ( 'scaffolds a Twilio Function with a template' , async ( ) => {
103103 const gitHubAPI = nock ( 'https://api.github.com' ) ;
104104 gitHubAPI
105- . get ( '/repos/twilio-labs/function-templates/contents/blank?ref=next ' )
105+ . get ( '/repos/twilio-labs/function-templates/contents/blank' )
106106 . reply ( 200 , [
107107 {
108108 name : 'functions'
109109 } ,
110110 {
111111 name : '.env' ,
112112 download_url :
113- 'https://raw.githubusercontent.com/twilio-labs/function-templates/next /blank/.env'
113+ 'https://raw.githubusercontent.com/twilio-labs/function-templates/master /blank/.env'
114114 }
115115 ] ) ;
116116 gitHubAPI
117- . get (
118- '/repos/twilio-labs/function-templates/contents/blank/functions?ref=next'
119- )
117+ . get ( '/repos/twilio-labs/function-templates/contents/blank/functions' )
120118 . reply ( 200 , [
121119 {
122120 name : 'blank.js' ,
123121 download_url :
124- 'https://raw.githubusercontent.com/twilio-labs/function-templates/next /blank/functions/blank.js'
122+ 'https://raw.githubusercontent.com/twilio-labs/function-templates/master /blank/functions/blank.js'
125123 }
126124 ] ) ;
127125 const gitHubRaw = nock ( 'https://raw.githubusercontent.com' ) ;
128126 gitHubRaw
129- . get ( '/twilio-labs/function-templates/next /blank/functions/blank.js' )
127+ . get ( '/twilio-labs/function-templates/master /blank/functions/blank.js' )
130128 . reply (
131129 200 ,
132130 `exports.handler = function(context, event, callback) {
@@ -137,7 +135,7 @@ describe('createTwilioFunction', () => {
137135 . get ( '/github/gitignore/master/Node.gitignore' )
138136 . reply ( 200 , 'node_modules/' ) ;
139137 gitHubRaw
140- . get ( '/twilio-labs/function-templates/next /blank/.env' )
138+ . get ( '/twilio-labs/function-templates/master /blank/.env' )
141139 . reply ( 200 , '' ) ;
142140
143141 const name = 'test-function' ;
@@ -187,9 +185,7 @@ describe('createTwilioFunction', () => {
187185 const name = 'test-function' ;
188186 const gitHubAPI = nock ( 'https://api.github.com' ) ;
189187 gitHubAPI
190- . get (
191- `/repos/twilio-labs/function-templates/contents/${ templateName } ?ref=next`
192- )
188+ . get ( `/repos/twilio-labs/function-templates/contents/${ templateName } ` )
193189 . reply ( 404 ) ;
194190
195191 const fail = jest . spyOn ( spinner , 'fail' ) ;
0 commit comments