We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e722d9f commit a44ef84Copy full SHA for a44ef84
test/unit/specs/namespace.js
@@ -84,6 +84,19 @@ describe('Namespace', function() {
84
85
expect(Backendless.ServerCode.addService()).to.be.equal(true)
86
})
87
+
88
+ it('should not reset ServerCode on initApp', () => {
89
+ const ServerCode = Backendless.ServerCode = {
90
+ addService() {
91
+ return true
92
+ }
93
94
95
+ Backendless.initApp(APP_ID, API_KEY)
96
97
+ expect(Backendless.ServerCode).to.be.equal(ServerCode)
98
+ expect(Backendless.ServerCode.addService()).to.be.equal(true)
99
+ })
100
101
102
describe('Device', () => {
0 commit comments