File tree Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def tsc_path
1515 end
1616
1717 # @return [Pathname]
18- def typescript_js_path
18+ def js_path
1919 typescript_path . join ( 'bin/typescript.js' )
2020 end
2121
@@ -33,7 +33,7 @@ def license_path
3333
3434 # @return [String]
3535 def js_content
36- typescript_js_path . read
36+ js_path . read
3737 end
3838
3939 # @return [Hash]
Original file line number Diff line number Diff line change 11require 'test/unit'
22
33class TestTypeScriptSrc < Test ::Unit ::TestCase
4+ def test_version
5+ assert { TypeScript ::Src ::VERSION . kind_of? ( String ) }
6+ end
47
8+ def test_package_json_path
9+ assert { TypeScript ::Src . package_json_path . file? }
10+ end
511
12+ def test_license_path
13+ assert { TypeScript ::Src . license_path . file? }
14+ end
15+
16+ def test_typescript_path
17+ assert { TypeScript ::Src . typescript_path . directory? }
18+ end
19+
20+ def test_tsc_path
21+ assert { TypeScript ::Src . tsc_path . file? }
22+ end
23+
24+ def test_js_path
25+ assert { TypeScript ::Src . js_path . file? }
26+ end
27+
28+ def test_js_content
29+ assert { TypeScript ::Src . js_content . length > 0 }
30+ end
631end
You can’t perform that action at this time.
0 commit comments