mirror of
https://github.com/Netflix/dial-reference.git
synced 2026-06-08 10:59:59 +00:00
ability to run tests standalone
This commit is contained in:
@@ -34,5 +34,6 @@ function test() {
|
|||||||
module.exports.test = test;
|
module.exports.test = test;
|
||||||
|
|
||||||
if (require.main === module) {
|
if (require.main === module) {
|
||||||
test.done();
|
test()
|
||||||
|
.done();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,5 +77,6 @@ function test() {
|
|||||||
module.exports.test = test;
|
module.exports.test = test;
|
||||||
|
|
||||||
if (require.main === module) {
|
if (require.main === module) {
|
||||||
test.done();
|
test()
|
||||||
|
.done();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -70,5 +70,6 @@ function test() {
|
|||||||
module.exports.test = test;
|
module.exports.test = test;
|
||||||
|
|
||||||
if (require.main === module) {
|
if (require.main === module) {
|
||||||
test.done();
|
test()
|
||||||
|
.done();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,5 +61,6 @@ function test() {
|
|||||||
module.exports.test = test;
|
module.exports.test = test;
|
||||||
|
|
||||||
if (require.main === module) {
|
if (require.main === module) {
|
||||||
test.done();
|
test()
|
||||||
|
.done();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -70,5 +70,6 @@ function test() {
|
|||||||
module.exports.test = test;
|
module.exports.test = test;
|
||||||
|
|
||||||
if (require.main === module) {
|
if (require.main === module) {
|
||||||
test.done();
|
test()
|
||||||
|
.done();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -70,5 +70,6 @@ function test() {
|
|||||||
module.exports.test = test;
|
module.exports.test = test;
|
||||||
|
|
||||||
if (require.main === module) {
|
if (require.main === module) {
|
||||||
test.done();
|
test()
|
||||||
|
.done();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,5 +68,6 @@ function test() {
|
|||||||
module.exports.test = test;
|
module.exports.test = test;
|
||||||
|
|
||||||
if (require.main === module) {
|
if (require.main === module) {
|
||||||
test.done();
|
test()
|
||||||
|
.done();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,5 +69,6 @@ function test() {
|
|||||||
module.exports.test = test;
|
module.exports.test = test;
|
||||||
|
|
||||||
if (require.main === module) {
|
if (require.main === module) {
|
||||||
test.done();
|
test()
|
||||||
|
.done();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -70,5 +70,6 @@ function test() {
|
|||||||
module.exports.test = test;
|
module.exports.test = test;
|
||||||
|
|
||||||
if (require.main === module) {
|
if (require.main === module) {
|
||||||
test.done();
|
test()
|
||||||
|
.done();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -70,5 +70,6 @@ function test() {
|
|||||||
module.exports.test = test;
|
module.exports.test = test;
|
||||||
|
|
||||||
if (require.main === module) {
|
if (require.main === module) {
|
||||||
test.done();
|
test()
|
||||||
|
.done();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,5 +29,6 @@ function test() {
|
|||||||
module.exports.test = test;
|
module.exports.test = test;
|
||||||
|
|
||||||
if (require.main === module) {
|
if (require.main === module) {
|
||||||
test.done();
|
test()
|
||||||
|
.done();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,5 +63,6 @@ function test() {
|
|||||||
module.exports.test = test;
|
module.exports.test = test;
|
||||||
|
|
||||||
if (require.main === module) {
|
if (require.main === module) {
|
||||||
test.done();
|
test()
|
||||||
|
.done();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,5 +77,6 @@ function test() {
|
|||||||
module.exports.test = test;
|
module.exports.test = test;
|
||||||
|
|
||||||
if (require.main === module) {
|
if (require.main === module) {
|
||||||
test.done();
|
test()
|
||||||
|
.done();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,5 +69,6 @@ function test() {
|
|||||||
module.exports.test = test;
|
module.exports.test = test;
|
||||||
|
|
||||||
if (require.main === module) {
|
if (require.main === module) {
|
||||||
test.done();
|
test()
|
||||||
|
.done();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -96,5 +96,6 @@ function test() {
|
|||||||
module.exports.test = test;
|
module.exports.test = test;
|
||||||
|
|
||||||
if (require.main === module) {
|
if (require.main === module) {
|
||||||
test.done();
|
test()
|
||||||
|
.done();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,5 +56,6 @@ function test() {
|
|||||||
module.exports.test = test;
|
module.exports.test = test;
|
||||||
|
|
||||||
if (require.main === module) {
|
if (require.main === module) {
|
||||||
test.done();
|
test()
|
||||||
|
.done();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user