Skip to content

Commit ff54aa8

Browse files
authored
Merge pull request #2 from jure/patch-1
Don't Object.assign to defaultConfiguration global
2 parents c87399c + 3e005a4 commit ff54aa8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/UserController.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('UserController', () => {
1313
describe('parseFrameURL not provided', () => {
1414
it('uses publicServerURL', (done) => {
1515

16-
AppCache.put(defaultConfiguration.appId, Object.assign(defaultConfiguration, {
16+
AppCache.put(defaultConfiguration.appId, Object.assign({}, defaultConfiguration, {
1717
publicServerURL: 'http://www.example.com',
1818
customPages: {
1919
parseFrameURL: undefined
@@ -36,7 +36,7 @@ describe('UserController', () => {
3636
describe('parseFrameURL provided', () => {
3737
it('uses parseFrameURL and includes the destination in the link parameter', (done) => {
3838

39-
AppCache.put(defaultConfiguration.appId, Object.assign(defaultConfiguration, {
39+
AppCache.put(defaultConfiguration.appId, Object.assign({}, defaultConfiguration, {
4040
publicServerURL: 'http://www.example.com',
4141
customPages: {
4242
parseFrameURL: 'http://someother.example.com/handle-parse-iframe'

0 commit comments

Comments
 (0)