Skip to content

Commit 0fb6b15

Browse files
committed
Remove console log from ContentstackClient tests and ensure newline at end of Util.js file
1 parent c888fe4 commit 0fb6b15

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

lib/core/Util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,4 +235,4 @@ export const validateAndSanitizeConfig = (config) => {
235235
...config,
236236
url: config.url.trim() // Sanitize URL by removing whitespace
237237
}
238-
}
238+
}

test/unit/ContentstackClient-test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,6 @@ describe('Contentstack Client', () => {
273273
it('should prioritize tfa_token over mfaSecret', done => {
274274
mock.onPost('/user-session').reply(config => {
275275
const data = JSON.parse(config.data)
276-
console.log(data)
277276
expect(data.user).to.deep.equal({
278277
email: 'test@example.com',
279278
password: 'password123',

test/unit/Util-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import getUserAgent, { __RewireAPI__ as getUserAgentRewireApi, isHost, getRegionEndpoint } from '../../lib/core/Util.js'
1+
import getUserAgent, { __RewireAPI__ as getUserAgentRewireApi, isHost } from '../../lib/core/Util.js'
22
import { expect } from 'chai'
33
import { describe, it } from 'mocha'
44
const headerRegEx = /(app|sdk|platform|integration|os) \S+(\/\d+.\d+.\d+(-[\w\d-]+)?)?;/igm

0 commit comments

Comments
 (0)