MCPcopy
hub / github.com/ternjs/tern / test

Function test

test/reload.js:5–13  ·  view source on GitHub ↗
(name, f)

Source from the content-addressed store, hash-verified

3
4var tests = [], added = false;
5function test(name, f) {
6 tests.push(function(filter) {
7 if (filter && name.indexOf(filter) == -1) return;
8 if (!added) { util.addFile(); added = true; }
9 util.addTest();
10
11 f(new tern.Server({defs: [util.ecmascript], debug: true}));
12 });
13}
14
15exports.runTests = function(filter) {
16 tests.forEach(function(test) { test(filter); });

Callers 2

reload.jsFile · 0.70
infer.jsFile · 0.50

Calls 1

fFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…