Skip to content

Commit bd73aaf

Browse files
committed
- temporary comment the warning about deprecated getter Backendless.applicationId
1 parent 0c2cbe8 commit bd73aaf

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,8 @@ class Backendless {
420420
/** @deprecated */
421421
get applicationId() {
422422
// eslint-disable-next-line no-console
423-
console.warn('getter/setter for Backendless.applicationId is deprecated, instead use Backendless.appId')
423+
// temporary comment it because it breaks JS-CodeRunner version less than 6.3.0
424+
// console.warn('getter/setter for Backendless.applicationId is deprecated, instead use Backendless.appId')
424425

425426
return this.appId
426427
}

test/unit/specs/namespace.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -378,12 +378,11 @@ describe('Namespace', function() {
378378
const appIdWarnMsg = 'getter/setter for Backendless.applicationId is deprecated, instead use Backendless.appId'
379379
const apiKeyWarnMsg = 'getter/setter for Backendless.secretKey is deprecated, instead use Backendless.apiKey'
380380

381-
expect(spyConsoleWarn).to.have.been.called.exactly(4)
381+
expect(spyConsoleWarn).to.have.been.called.exactly(3)
382382

383-
expect(spyConsoleWarn).on.nth(1).be.called.with(appIdWarnMsg)
384-
expect(spyConsoleWarn).on.nth(2).be.called.with(apiKeyWarnMsg)
385-
expect(spyConsoleWarn).on.nth(3).be.called.with(appIdWarnMsg)
386-
expect(spyConsoleWarn).on.nth(4).be.called.with(apiKeyWarnMsg)
383+
expect(spyConsoleWarn).on.nth(1).be.called.with(apiKeyWarnMsg)
384+
expect(spyConsoleWarn).on.nth(2).be.called.with(appIdWarnMsg)
385+
expect(spyConsoleWarn).on.nth(3).be.called.with(apiKeyWarnMsg)
387386

388387
// eslint-disable-next-line no-console
389388
console.warn = _nativeConsoleWarn

0 commit comments

Comments
 (0)