remove deprecated tests

This commit is contained in:
Shelley Vohr 2017-11-02 00:16:51 -04:00
parent 65f125a245
commit 1d6803b234
No known key found for this signature in database
GPG key ID: F13993A75599653C

View file

@ -328,20 +328,7 @@ describe('crashReporter module', () => {
const parameters = crashReporter.getParameters()
assert(typeof parameters === 'object')
})
// TODO(2.0) Remove
it('adds a parameter with setExtraParameter', () => {
// only run on MacOS
if (process.platform !== 'darwin') return
crashReporter.start({
companyName: 'Umbrella Corporation',
submitURL: 'http://127.0.0.1/crashes'
})
crashReporter.setExtraParameter('hello', 'world')
assert('hello' in crashReporter.getParameters())
})
it('adds a parameter with addExtraParameter', () => {
it('adds a parameter to current parameters', () => {
// only run on MacOS
if (process.platform !== 'darwin') return
@ -353,23 +340,7 @@ describe('crashReporter module', () => {
crashReporter.addExtraParameter('hello', 'world')
assert('hello' in crashReporter.getParameters())
})
// TODO(2.0) Remove
it('removes a parameter with setExtraParameter', () => {
// only run on MacOS
if (process.platform !== 'darwin') return
crashReporter.start({
companyName: 'Umbrella Corporation',
submitURL: 'http://127.0.0.1/crashes'
})
crashReporter.setExtraParameter('hello', 'world')
assert('hello' in crashReporter.getParameters())
crashReporter.setExtraParameter('hello')
assert(!('hello' in crashReporter.getParameters()))
})
it('removes a parameter with removeExtraParameter', () => {
it('removes a parameter from current parameters', () => {
// only run on MacOS
if (process.platform !== 'darwin') return