From 2a78a8bd31223a56b964b5492feeeb04093dd690 Mon Sep 17 00:00:00 2001 From: renxiang Date: Sat, 9 Oct 2021 16:49:55 +0800 Subject: [PATCH] adapt js test framework Signed-off-by: renxiang --- src/core/build/pretreat_targets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/build/pretreat_targets.py b/src/core/build/pretreat_targets.py index fe62800..7d30c9e 100644 --- a/src/core/build/pretreat_targets.py +++ b/src/core/build/pretreat_targets.py @@ -101,7 +101,7 @@ class PretreatTargets(object): shutil.copy(os.path.join(target_path, file), test_path) with open(os.path.join(test_path, "List.test.js"), 'a') \ as list_data: - list_data.write("require('./%s')" % file) + list_data.write("require('./%s')\n" % file) #modify i18n json file i18n_path = os.path.join(target_path, "src", "main", "js", -- Gitee