mirror of https://github.com/zulip/zulip.git
test-js-with-node: Move constants toward top.
This commit is contained in:
parent
ed845d4da4
commit
cc07bf04b7
|
@ -16,6 +16,9 @@ sanity_check.check_venv(__file__)
|
||||||
# Import this after we do the sanity_check so it doesn't crash.
|
# Import this after we do the sanity_check so it doesn't crash.
|
||||||
import ujson
|
import ujson
|
||||||
|
|
||||||
|
INDEX_JS = 'frontend_tests/zjsunit/index.js'
|
||||||
|
NODE_COVERAGE_PATH = 'var/node-coverage/coverage-final.json'
|
||||||
|
|
||||||
USAGE = '''
|
USAGE = '''
|
||||||
tools/test-js-with-node - to run all tests
|
tools/test-js-with-node - to run all tests
|
||||||
tools/test-js-with-node util.js activity.js - to run just a couple tests
|
tools/test-js-with-node util.js activity.js - to run just a couple tests
|
||||||
|
@ -115,8 +118,6 @@ assert_provisioning_status_ok(options.force)
|
||||||
|
|
||||||
os.environ['TZ'] = 'UTC'
|
os.environ['TZ'] = 'UTC'
|
||||||
|
|
||||||
INDEX_JS = 'frontend_tests/zjsunit/index.js'
|
|
||||||
|
|
||||||
# Add ".js" to the end of all the file arguments, so index.js
|
# Add ".js" to the end of all the file arguments, so index.js
|
||||||
# can actually verify if the file exists or not.
|
# can actually verify if the file exists or not.
|
||||||
for index, arg in enumerate(options.args):
|
for index, arg in enumerate(options.args):
|
||||||
|
@ -177,8 +178,6 @@ def check_line_coverage(fn, line_coverage, line_mapping, log=True):
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
NODE_COVERAGE_PATH = 'var/node-coverage/coverage-final.json'
|
|
||||||
|
|
||||||
def read_coverage() -> Any:
|
def read_coverage() -> Any:
|
||||||
coverage_json = None
|
coverage_json = None
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue