{"size": 946, "ext": "js", "max_stars_repo_path": "013-Leaflet-Split-View/node_modules/exposify/test/jquery-three-d3.spread.js", "max_stars_repo_name": "g07kore/Leaflet-Nodejs-tutorials", "max_stars_repo_stars_event_min_datetime": "2015-01-04T03:46:34.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-17T07:29:57.000Z", "max_issues_repo_path": "013-Leaflet-Split-View/node_modules/exposify/test/jquery-three-d3.spread.js", "max_issues_repo_name": "g07kore/Leaflet-Nodejs-tutorials", "max_issues_repo_issues_event_min_datetime": "2015-01-27T18:09:48.000Z", "max_issues_repo_issues_event_max_datetime": "2021-07-15T13:28:19.000Z", "max_forks_repo_path": "node_modules/exposify/test/jquery-three-d3.spread.js", "max_forks_repo_name": "techmahedy/CPT-PLUGIN", "max_forks_repo_forks_event_min_datetime": "2019-02-22T19:34:08.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-26T22:32:13.000Z"}
{"max_stars_count": 145, "max_issues_count": 34, "max_forks_count": 32, "avg_line_length": 33.7857142857, "max_line_length": 132, "alphanum_fraction": 0.6109936575}
'use strict';
/*jshint asi: true */

var test = require('tap').test
  , run  = require('./util/run')
  , show  = require('./util/show')

function jquery() { return 'jq' }
var three = { version: 'v1.1.1' };
var d3 = { version: 'v2.1.3' };

test('\nproviding jquery:$ three:THREE d3:d3 and exposifying src with one jquery, multiple d3 and one three require', function (t) {
  var file   = 'jquery-three-d3.spread.js';
  var map    = { jquery: '$', three: 'THREE', d3: 'd3' };
  var window = { $: { jquery: jquery }, THREE: three, d3: d3 };

  run(map, file, window, function (err, main) {
    if (err) { t.fail(err); return t.end(); }
    var res = main()
    t.equal(res.jquery, 'jq', 'exposes $ as jquery');
    t.equal(res.three, three.version, 'exposes THREE as three whose require was very nested') 
    t.equal(res.d3, d3.version, 'exposes d3')
    t.equal(res.r2d3, d3.version, 'exposes d3 which was required inline')

    t.end();
  });
})
