{"size": 603, "ext": "js", "max_stars_repo_path": "tests/anonAutoNamed/anonAutoNamed.js", "max_stars_repo_name": "domainesia/cashew", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "tests/anonAutoNamed/anonAutoNamed.js", "max_issues_repo_name": "domainesia/cashew", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "tests/anonAutoNamed/anonAutoNamed.js", "max_forks_repo_name": "domainesia/cashew", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.5357142857, "max_line_length": 80, "alphanum_fraction": 0.5638474295}
// Auto name define inside a file, loaded via script src, even with query string

var shouldBeModuleContent = null;
var throwCount = 0;

var dir = window.location.toString().replace(/\/[^\/]*$/, '');
try {
  require([ dir + '/modA.js' ], function(a) {
    shouldBeModuleContent = a;
  }, null, true);
} catch (e) {
  // Should not called
  throwCount += 1;
}

doh.register(
    'anonAutonamed',
    [
        function anonAutonamed(t){
            t.is(0, throwCount);
            t.is({
                content: "Hello world, modA",
            }, shouldBeModuleContent);
        }
    ]
);
doh.run();
