mirror of https://github.com/lukechilds/rollup.git
Rich Harris
9 years ago
5 changed files with 2 additions and 22 deletions
@ -1,8 +0,0 @@ |
|||
var assert = require( 'assert' ); |
|||
|
|||
module.exports = { |
|||
description: 'skips a dead branch (g)', |
|||
code: function ( code ) { |
|||
assert.equal( code.indexOf( 'obj.foo = function' ), -1, code ); |
|||
} |
|||
} |
@ -1,11 +0,0 @@ |
|||
var obj = {}; |
|||
obj.foo = function () { |
|||
console.log( 'this should be excluded' ); |
|||
} |
|||
|
|||
function bar () { |
|||
console.log( 'this should be included' ); |
|||
} |
|||
|
|||
if ( 42 != '42' ) obj.foo(); |
|||
bar(); |
Loading…
Reference in new issue