Skip to content

Commit 604af1a

Browse files
committed
test(Offline Tests): return token object from nock
previously, just a string 'fakeToken' was returned, which is mismatched with the current expected token object structure. this returns the actual fakeToken object that is declared in the test.
1 parent 16af9ac commit 604af1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/offline.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('offline tests', () => {
2727
nock('https://stream.watsonplatform.net:443', { encodedQueryParams: true })
2828
.get('/authorization/api/v1/token')
2929
.query({ url: 'https://stream.watsonplatform.net/speech-to-text/api' })
30-
.reply(200, 'faketoken', {
30+
.reply(200, fakeToken, {
3131
connection: 'close',
3232
'transfer-encoding': 'chunked',
3333
'content-type': 'text/xml',

0 commit comments

Comments
 (0)