This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: use console.warn for alerts and store them in Set (#455)
* ref: use console.warn for alerts and store them in Set * test: consoleAlert and consoleAlertOnce tests
- Loading branch information
1 parent
46c7a51
commit 1e44061
Showing
4 changed files
with
84 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
"env": { | ||
"node": true, | ||
"mocha": true, | ||
"es6": true | ||
}, | ||
"rules": { | ||
"block-scoped-var": 2, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,8 +11,6 @@ var raven = require('../'), | |
zlib = require('zlib'), | ||
child_process = require('child_process'); | ||
|
||
raven.utils.disableConsoleAlerts(); | ||
|
||
var dsn = 'https://public:[email protected]/269'; | ||
|
||
var _oldConsoleWarn = console.warn; | ||
|
@@ -43,6 +41,12 @@ describe('raven.Client', function() { | |
var client; | ||
beforeEach(function() { | ||
client = new raven.Client(dsn); | ||
raven.utils.disableConsoleAlerts(); | ||
}); | ||
|
||
afterEach(function() { | ||
client = new raven.Client(dsn); | ||
raven.utils.enableConsoleAlerts(); | ||
}); | ||
|
||
it('should parse the DSN with options', function() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters