Skip to content
This repository was archived by the owner on Feb 3, 2022. It is now read-only.

Commit 175ca06

Browse files
committed
Updates twilio-run and references to master branches
1 parent dfee78f commit 175ca06

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"ora": "^3.2.0",
3535
"pkg-install": "^1.0.0",
3636
"rimraf": "^2.6.3",
37-
"twilio-run": "^2.0.0-rc.4",
37+
"twilio-run": "^2.0.0",
3838
"window-size": "^1.1.1",
3939
"wrap-ansi": "^6.0.0",
4040
"yargs": "^12.0.5"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
2-
twilioRun: '2.* || >2.0.0-rc',
2+
twilioRun: '^2.0.0',
33
node: '8.10.0'
44
};

tests/create-twilio-function.test.js

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)