Skip to content

Commit

Permalink
Add verification that the prepare command installs correct dependen…
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasil Chimev authored and Vasil Chimev committed Nov 17, 2015
1 parent abc158c commit e294c29
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/transpilation_typescript.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_001_transpilation_typescript(self):
platform_add(platform="android", framework_path=ANDROID_RUNTIME_PATH, path="TNS_App")

assert file_with_extension_exists(
"TNS_App/node_modules/tns-core-modules", ".ts")
"TNS_App/node_modules/tns-core-modules", ".d.ts")

output = run_aut(TNS_PATH + " install typescript --path TNS_App")
assert "TNS_App/node_modules/nativescript-dev-typescript" in output
Expand Down Expand Up @@ -100,3 +100,8 @@ def test_001_transpilation_typescript(self):
def test_201_transpilation_after_node_modules_deleted(self):
run_aut("rm -rf TNS_App/node_modules")
prepare(platform="android", path="TNS_App")

# Verify that the `prepare` command
# installs correct dependencies.
output = run_aut("ls TNS_App/node_modules | wc -l")
assert "3" in output, "The 'prepare' command does not install correct dependences."

0 comments on commit e294c29

Please sign in to comment.