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 d46d8f6 commit 2a6390eCopy full SHA for 2a6390e
test/raven.test.js
@@ -1694,6 +1694,12 @@ describe('Raven (public API)', function() {
1694
assert.deepEqual(Raven._globalContext.user, {name: 'Matt'});
1695
});
1696
1697
+ it('should not merge globalContext.user object, but rewrite', function () {
1698
+ Raven._globalContext.user = {name: 'Matt'};
1699
+ Raven.setUserContext({age: 34, email: 'john@mail.com'});
1700
+ assert.deepEqual(Raven._globalContext.user, {age: 34, email: 'john@mail.com'});
1701
+ });
1702
+
1703
it('should clear the globalContext.user with no arguments', function() {
1704
Raven._globalContext.user = {name: 'Matt'};
1705
Raven.setUserContext();
0 commit comments