Skip to content

Commit f77850f

Browse files
authored
Update api-browser.js (#239)
1 parent b44939c commit f77850f

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 7 additions & 5 deletions
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+
* enable it after one build is done, and the path is loaded.
16+
* test.it('loads the JSON from disk for preview', () => {
17+
* const browser = new TwilioApiBrowser();
18+
* expect(browser.domains.api.paths['/BulkExports/Exports/Jobs/{JobSid}']).to.exist;
19+
* });
20+
*/
1921

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

0 commit comments

Comments
 (0)