Skip to content

Commit e158bd6

Browse files
committedJan 30, 2024
fix: added fix for preview domain
1 parent b44939c commit e158bd6

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed
 

‎src/services/twilio-api/api-browser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class TwilioApiBrowser {
4141

4242
apiSpec = fs
4343
.readdirSync(__dirname)
44-
.filter((filename) => filename.match(specPattern) && !filename.match('twilio_preview.json'))
44+
.filter((filename) => filename.match(specPattern))
4545
.map((filename) => {
4646
const domainName = filename.match(specPattern)[specNameIndex];
4747

‎test/services/twilio-api/api-browser.test.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ describe('services', () => {
1111
expect(browser.domains.api.paths['/2010-04-01/Accounts/{AccountSid}/Calls.json'].operations.post).to.exist;
1212
expect(browser.domains.api.paths['/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json'].operations.get).to.exist;
1313
});
14-
15-
test.it('loads the JSON from disk except for preview', () => {
16-
const browser = new TwilioApiBrowser();
17-
expect(browser.domains.api.paths['/BulkExports/Exports/Jobs/{JobSid}']).to.not.exist;
18-
});
14+
/*
15+
* TODO: enable it after one build is done, and the path is loaded.
16+
* test.it('loads the JSON from disk except for preview', () => {
17+
* const browser = new TwilioApiBrowser();
18+
* expect(browser.domains.api.paths['/BulkExports/Exports/Jobs/{JobSid}']).to.not.exist;
19+
* });
20+
*/
1921

2022
test.it('loads JSONs split by version', () => {
2123
const browser = new TwilioApiBrowser();

0 commit comments

Comments
 (0)
Please sign in to comment.