MCPcopy Create free account
hub / github.com/dresende/node-orm2 / shouldRunTest

Function shouldRunTest

test/run.js:23–31  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

21}
22
23function shouldRunTest(file) {
24 var name = path.basename(file).slice(0, -3)
25 var proto = common.protocol();
26 var exclude = ['model-aggregate','property-number-size','smart-types'];
27
28 if (proto == "mongodb" && exclude.indexOf(name) >= 0) return false;
29
30 return true;
31}
32
33function runTests() {
34 if (common.protocol() == 'mongodb' && common.nodeVersion().major > 6) {

Callers 1

runTestsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected