Skip to content

Commit 1a91f13

Browse files
committed
2.6.1 [fixed syntax error]
1 parent b1720ae commit 1a91f13

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/raven.client.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function restoreConsoleWarn() {
2626
console.warn = _oldConsoleWarn;
2727
}
2828

29+
raven.utils.disableConsoleAlerts();
2930
describe('raven.version', function() {
3031
it('should be valid', function() {
3132
raven.version.should.match(/^\d+\.\d+\.\d+(-\w+(\.\d+)?)?$/);
@@ -40,13 +41,13 @@ describe('raven.version', function() {
4041
describe('raven.Client', function() {
4142
var client;
4243
beforeEach(function() {
43-
client = new raven.Client(dsn);
4444
raven.utils.disableConsoleAlerts();
45+
client = new raven.Client(dsn);
4546
});
4647

4748
afterEach(function() {
48-
client = new raven.Client(dsn);
4949
raven.utils.enableConsoleAlerts();
50+
client = new raven.Client(dsn);
5051
});
5152

5253
it('should parse the DSN with options', function() {

test/raven.utils.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,4 +667,6 @@ describe('raven.utils', function() {
667667
console.warn._callCount.should.eql(0);
668668
raven.utils.enableConsoleAlerts();
669669
restoreConsoleWarn();
670+
});
671+
});
670672
});

0 commit comments

Comments
 (0)