Skip to content

Commit

Permalink
fix: feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Mar 25, 2020
1 parent 393cc70 commit 18e5342
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/garbage.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ const garbage = require('garbage')

const cbor = require('../src')

// const CBOR_GARBAGE = global.process.env.NODE_CBOR_GARBAGE
// const NO_GARBAGE = global.process.env.NO_GARBAGE
const REPEATS = parseInt(1000)
const CBOR_GARBAGE = (global.process && global.process.env) ? global.process.env.NODE_CBOR_GARBAGE : undefined
const NO_GARBAGE = (global.process && global.process.env) ? global.process.env.NO_GARBAGE : undefined
const REPEATS = parseInt(CBOR_GARBAGE || 1000)

describe('random data', () => {
// if (NO_GARBAGE) {
// it.skip('garbage', () => {})
// return
// }
if (NO_GARBAGE) {
it.skip('garbage', () => {})
return
}

it('garbage', function () {
this.timeout(20 * 1000)
Expand Down

0 comments on commit 18e5342

Please sign in to comment.