Sha256: e319a41988d5ca8724f771dbe5adeba8d4bdb09fc184625d36960d651f6a6416

Contents?: true

Size: 482 Bytes

Versions: 9

Compression:

Stored size: 482 Bytes

Contents

var test = require('tape');
var detect = require('../');
var fs = require('fs');
var src = fs.readFileSync(__dirname + '/files/multiple-exports.js');

test('multiple-exports', function (t) {
    t.plan(3);
    
    var scope = detect(src);
    t.same(scope.globals.implicit.sort(), ['bar', 'exports'].sort());
    t.same(scope.globals.exported, []);
    t.same(scope.locals,  {
      '':[],
      'body.1.expression.right': ['bar'],
      'body.0.expression.right': []
    });
});

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
minimum_viable_product-0.0.11 test/dummy/node_modules/lexical-scope/test/multiple-exports.js
brwy_rails-0.0.6 test/dummy/node_modules/lexical-scope/test/multiple-exports.js
brwy_rails-0.0.5 test/dummy/node_modules/lexical-scope/test/multiple-exports.js
brwy_rails-0.0.4 test/dummy/node_modules/lexical-scope/test/multiple-exports.js
brwy_rails-0.0.3 test/dummy/node_modules/lexical-scope/test/multiple-exports.js
brwy_rails-0.0.2 test/dummy/node_modules/lexical-scope/test/multiple-exports.js
brwy_rails-0.0.1 test/dummy/node_modules/lexical-scope/test/multiple-exports.js
sprockets-browserify-0.3.0 node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/test/multiple-exports.js
sprockets-browserify-0.2.0 node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/test/multiple-exports.js