From fd58106e7f3981d85700a2e02bfd50b704117a87 Mon Sep 17 00:00:00 2001 From: Shruti Ranganathan Jothi Date: Tue, 28 Feb 2017 17:29:57 -0800 Subject: [PATCH] ability to run tests standalone --- server/tests/js_tests/tests/discoverServerUnderTest.js | 3 ++- server/tests/js_tests/tests/hideApplicationInHiddenState.js | 3 ++- server/tests/js_tests/tests/hideApplicationInRunningState.js | 3 ++- server/tests/js_tests/tests/hideInvalidApplicationInstance.js | 3 ++- .../tests/launchApplicationInHiddenStateWithNoPayload.js | 3 ++- .../tests/launchApplicationInHiddenStateWithPayload.js | 3 ++- .../tests/launchApplicationInRunningStateWithNoPayload.js | 3 ++- .../tests/launchApplicationInRunningStateWithPayload.js | 3 ++- .../tests/launchApplicationInStoppedStateWithNoPayload.js | 3 ++- .../tests/launchApplicationInStoppedStateWithPayload.js | 3 ++- server/tests/js_tests/tests/launchApplicationNotRecognized.js | 3 ++- .../tests/js_tests/tests/launchApplicationWithExcessPayload.js | 3 ++- server/tests/js_tests/tests/stopApplicationInHiddenState.js | 3 ++- server/tests/js_tests/tests/stopApplicationInRunningState.js | 3 ++- server/tests/js_tests/tests/stopApplicationInStoppedState.js | 3 ++- server/tests/js_tests/tests/stopInvalidApplicationInstance.js | 3 ++- 16 files changed, 32 insertions(+), 16 deletions(-) diff --git a/server/tests/js_tests/tests/discoverServerUnderTest.js b/server/tests/js_tests/tests/discoverServerUnderTest.js index 7efb13f..4bd0d07 100644 --- a/server/tests/js_tests/tests/discoverServerUnderTest.js +++ b/server/tests/js_tests/tests/discoverServerUnderTest.js @@ -34,5 +34,6 @@ function test() { module.exports.test = test; if (require.main === module) { - test.done(); + test() + .done(); } diff --git a/server/tests/js_tests/tests/hideApplicationInHiddenState.js b/server/tests/js_tests/tests/hideApplicationInHiddenState.js index 8249c96..8283c4e 100644 --- a/server/tests/js_tests/tests/hideApplicationInHiddenState.js +++ b/server/tests/js_tests/tests/hideApplicationInHiddenState.js @@ -77,5 +77,6 @@ function test() { module.exports.test = test; if (require.main === module) { - test.done(); + test() + .done(); } diff --git a/server/tests/js_tests/tests/hideApplicationInRunningState.js b/server/tests/js_tests/tests/hideApplicationInRunningState.js index 41f6d64..1349dbb 100644 --- a/server/tests/js_tests/tests/hideApplicationInRunningState.js +++ b/server/tests/js_tests/tests/hideApplicationInRunningState.js @@ -70,5 +70,6 @@ function test() { module.exports.test = test; if (require.main === module) { - test.done(); + test() + .done(); } diff --git a/server/tests/js_tests/tests/hideInvalidApplicationInstance.js b/server/tests/js_tests/tests/hideInvalidApplicationInstance.js index 09204cf..2199b09 100644 --- a/server/tests/js_tests/tests/hideInvalidApplicationInstance.js +++ b/server/tests/js_tests/tests/hideInvalidApplicationInstance.js @@ -61,5 +61,6 @@ function test() { module.exports.test = test; if (require.main === module) { - test.done(); + test() + .done(); } diff --git a/server/tests/js_tests/tests/launchApplicationInHiddenStateWithNoPayload.js b/server/tests/js_tests/tests/launchApplicationInHiddenStateWithNoPayload.js index 51206d9..643eccb 100644 --- a/server/tests/js_tests/tests/launchApplicationInHiddenStateWithNoPayload.js +++ b/server/tests/js_tests/tests/launchApplicationInHiddenStateWithNoPayload.js @@ -70,5 +70,6 @@ function test() { module.exports.test = test; if (require.main === module) { - test.done(); + test() + .done(); } diff --git a/server/tests/js_tests/tests/launchApplicationInHiddenStateWithPayload.js b/server/tests/js_tests/tests/launchApplicationInHiddenStateWithPayload.js index 9fb1861..5c23be5 100644 --- a/server/tests/js_tests/tests/launchApplicationInHiddenStateWithPayload.js +++ b/server/tests/js_tests/tests/launchApplicationInHiddenStateWithPayload.js @@ -70,5 +70,6 @@ function test() { module.exports.test = test; if (require.main === module) { - test.done(); + test() + .done(); } diff --git a/server/tests/js_tests/tests/launchApplicationInRunningStateWithNoPayload.js b/server/tests/js_tests/tests/launchApplicationInRunningStateWithNoPayload.js index aced674..a5e07c3 100644 --- a/server/tests/js_tests/tests/launchApplicationInRunningStateWithNoPayload.js +++ b/server/tests/js_tests/tests/launchApplicationInRunningStateWithNoPayload.js @@ -68,5 +68,6 @@ function test() { module.exports.test = test; if (require.main === module) { - test.done(); + test() + .done(); } diff --git a/server/tests/js_tests/tests/launchApplicationInRunningStateWithPayload.js b/server/tests/js_tests/tests/launchApplicationInRunningStateWithPayload.js index 37dbb52..2fdbcb5 100644 --- a/server/tests/js_tests/tests/launchApplicationInRunningStateWithPayload.js +++ b/server/tests/js_tests/tests/launchApplicationInRunningStateWithPayload.js @@ -69,5 +69,6 @@ function test() { module.exports.test = test; if (require.main === module) { - test.done(); + test() + .done(); } diff --git a/server/tests/js_tests/tests/launchApplicationInStoppedStateWithNoPayload.js b/server/tests/js_tests/tests/launchApplicationInStoppedStateWithNoPayload.js index 1e83ca0..6768ac4 100644 --- a/server/tests/js_tests/tests/launchApplicationInStoppedStateWithNoPayload.js +++ b/server/tests/js_tests/tests/launchApplicationInStoppedStateWithNoPayload.js @@ -70,5 +70,6 @@ function test() { module.exports.test = test; if (require.main === module) { - test.done(); + test() + .done(); } diff --git a/server/tests/js_tests/tests/launchApplicationInStoppedStateWithPayload.js b/server/tests/js_tests/tests/launchApplicationInStoppedStateWithPayload.js index 8457bd5..940d838 100644 --- a/server/tests/js_tests/tests/launchApplicationInStoppedStateWithPayload.js +++ b/server/tests/js_tests/tests/launchApplicationInStoppedStateWithPayload.js @@ -70,5 +70,6 @@ function test() { module.exports.test = test; if (require.main === module) { - test.done(); + test() + .done(); } diff --git a/server/tests/js_tests/tests/launchApplicationNotRecognized.js b/server/tests/js_tests/tests/launchApplicationNotRecognized.js index 5eec857..1b191a0 100644 --- a/server/tests/js_tests/tests/launchApplicationNotRecognized.js +++ b/server/tests/js_tests/tests/launchApplicationNotRecognized.js @@ -29,5 +29,6 @@ function test() { module.exports.test = test; if (require.main === module) { - test.done(); + test() + .done(); } diff --git a/server/tests/js_tests/tests/launchApplicationWithExcessPayload.js b/server/tests/js_tests/tests/launchApplicationWithExcessPayload.js index 0e58643..3a459d9 100644 --- a/server/tests/js_tests/tests/launchApplicationWithExcessPayload.js +++ b/server/tests/js_tests/tests/launchApplicationWithExcessPayload.js @@ -63,5 +63,6 @@ function test() { module.exports.test = test; if (require.main === module) { - test.done(); + test() + .done(); } diff --git a/server/tests/js_tests/tests/stopApplicationInHiddenState.js b/server/tests/js_tests/tests/stopApplicationInHiddenState.js index eddc190..8abfe87 100644 --- a/server/tests/js_tests/tests/stopApplicationInHiddenState.js +++ b/server/tests/js_tests/tests/stopApplicationInHiddenState.js @@ -77,5 +77,6 @@ function test() { module.exports.test = test; if (require.main === module) { - test.done(); + test() + .done(); } diff --git a/server/tests/js_tests/tests/stopApplicationInRunningState.js b/server/tests/js_tests/tests/stopApplicationInRunningState.js index 13947f4..0b55b26 100644 --- a/server/tests/js_tests/tests/stopApplicationInRunningState.js +++ b/server/tests/js_tests/tests/stopApplicationInRunningState.js @@ -69,5 +69,6 @@ function test() { module.exports.test = test; if (require.main === module) { - test.done(); + test() + .done(); } diff --git a/server/tests/js_tests/tests/stopApplicationInStoppedState.js b/server/tests/js_tests/tests/stopApplicationInStoppedState.js index 5bf2464..4d9e137 100644 --- a/server/tests/js_tests/tests/stopApplicationInStoppedState.js +++ b/server/tests/js_tests/tests/stopApplicationInStoppedState.js @@ -96,5 +96,6 @@ function test() { module.exports.test = test; if (require.main === module) { - test.done(); + test() + .done(); } diff --git a/server/tests/js_tests/tests/stopInvalidApplicationInstance.js b/server/tests/js_tests/tests/stopInvalidApplicationInstance.js index 82d4c5a..4b42cc0 100644 --- a/server/tests/js_tests/tests/stopInvalidApplicationInstance.js +++ b/server/tests/js_tests/tests/stopInvalidApplicationInstance.js @@ -56,5 +56,6 @@ function test() { module.exports.test = test; if (require.main === module) { - test.done(); + test() + .done(); }