Skip to content

Commit 75485a7

Browse files
committed
chore: update unit tests
1 parent 4d42940 commit 75485a7

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

test/unit/compare-comply.v1.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ describe('convertToHtml', () => {
115115

116116
test('should enforce required parameters', done => {
117117
// required parameters for this method
118-
const requiredParams = ['file'];
118+
const requiredParams = ['file', 'filename'];
119119

120120
compareComply.convertToHtml({}, err => {
121121
checkRequiredParamsHandling(requiredParams, err, missingParamsMock, createRequestMock);
@@ -125,7 +125,7 @@ describe('convertToHtml', () => {
125125

126126
test('should reject promise when required params are not given', done => {
127127
// required parameters for this method
128-
const requiredParams = ['file'];
128+
const requiredParams = ['file', 'filename'];
129129

130130
const convertToHtmlPromise = compareComply.convertToHtml();
131131
expectToBePromise(convertToHtmlPromise);

test/unit/discovery.v1.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2132,7 +2132,7 @@ describe('createStopwordList', () => {
21322132

21332133
test('should enforce required parameters', done => {
21342134
// required parameters for this method
2135-
const requiredParams = ['environment_id', 'collection_id', 'stopword_file'];
2135+
const requiredParams = ['environment_id', 'collection_id', 'stopword_file', 'stopword_filename'];
21362136

21372137
discovery.createStopwordList({}, err => {
21382138
checkRequiredParamsHandling(requiredParams, err, missingParamsMock, createRequestMock);

text-to-speech/v1-generated.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,8 @@
1616

1717
import { AxiosResponse } from 'axios';
1818
import * as extend from 'extend';
19-
<<<<<<< HEAD
20-
import { BaseService } from '../lib/base_service';
21-
import { getDefaultHeaders } from '../lib/common';
22-
import { getMissingParams } from '../lib/helper';
23-
import { FileObject } from '../lib/helper';
24-
=======
2519
import { BaseService, FileObject, getMissingParams} from 'ibm-cloud-sdk-core';
26-
import { RequestResponse } from 'request';
2720
import { getSdkHeaders } from '../lib/common';
28-
>>>>>>> master
2921

3022
/**
3123
* ### Service Overview The IBM&reg; Text to Speech service provides APIs that use IBM's speech-synthesis capabilities to synthesize text into natural-sounding speech in a variety of languages, dialects, and voices. The service supports at least one male or female voice, sometimes both, for each language. The audio is streamed back to the client with minimal delay. For speech synthesis, the service supports a synchronous HTTP Representational State Transfer (REST) interface. It also supports a WebSocket interface that provides both plain text and SSML input, including the SSML &lt;mark&gt; element and word timings. SSML is an XML-based markup language that provides text annotation for speech-synthesis applications. The service also offers a customization interface. You can use the interface to define sounds-like or phonetic translations for words. A sounds-like translation consists of one or more words that, when combined, sound like the word. A phonetic translation is based on the SSML phoneme format for representing a word. You can specify a phonetic translation in standard International Phonetic Alphabet (IPA) representation or in the proprietary IBM Symbolic Phonetic Representation (SPR).

0 commit comments

Comments
 (0)