@@ -102,31 +102,29 @@ describe('createTwilioFunction', () => {
102
102
it ( 'scaffolds a Twilio Function with a template' , async ( ) => {
103
103
const gitHubAPI = nock ( 'https://api.github.com' ) ;
104
104
gitHubAPI
105
- . get ( '/repos/twilio-labs/function-templates/contents/blank?ref=next ' )
105
+ . get ( '/repos/twilio-labs/function-templates/contents/blank' )
106
106
. reply ( 200 , [
107
107
{
108
108
name : 'functions'
109
109
} ,
110
110
{
111
111
name : '.env' ,
112
112
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'
114
114
}
115
115
] ) ;
116
116
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' )
120
118
. reply ( 200 , [
121
119
{
122
120
name : 'blank.js' ,
123
121
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'
125
123
}
126
124
] ) ;
127
125
const gitHubRaw = nock ( 'https://raw.githubusercontent.com' ) ;
128
126
gitHubRaw
129
- . get ( '/twilio-labs/function-templates/next /blank/functions/blank.js' )
127
+ . get ( '/twilio-labs/function-templates/master /blank/functions/blank.js' )
130
128
. reply (
131
129
200 ,
132
130
`exports.handler = function(context, event, callback) {
@@ -137,7 +135,7 @@ describe('createTwilioFunction', () => {
137
135
. get ( '/github/gitignore/master/Node.gitignore' )
138
136
. reply ( 200 , 'node_modules/' ) ;
139
137
gitHubRaw
140
- . get ( '/twilio-labs/function-templates/next /blank/.env' )
138
+ . get ( '/twilio-labs/function-templates/master /blank/.env' )
141
139
. reply ( 200 , '' ) ;
142
140
143
141
const name = 'test-function' ;
@@ -187,9 +185,7 @@ describe('createTwilioFunction', () => {
187
185
const name = 'test-function' ;
188
186
const gitHubAPI = nock ( 'https://api.github.com' ) ;
189
187
gitHubAPI
190
- . get (
191
- `/repos/twilio-labs/function-templates/contents/${ templateName } ?ref=next`
192
- )
188
+ . get ( `/repos/twilio-labs/function-templates/contents/${ templateName } ` )
193
189
. reply ( 404 ) ;
194
190
195
191
const fail = jest . spyOn ( spinner , 'fail' ) ;
0 commit comments