Install atom-typescript as dependent Atom package for tests

This commit is contained in:
Glavin Wiechert 2015-06-06 16:05:41 -03:00
parent d430bfbf14
commit 4a1184eba5
1 changed files with 12 additions and 4 deletions

View File

@ -20,16 +20,24 @@ describe "BeautifyLanguages", ->
"java", "javascript", "json", "less",
"mustache", "objective-c", "perl", "php",
"python", "ruby", "sass", "sql",
"typescript", "xml", "csharp", "gfm", "marko",
"xml", "csharp", "gfm", "marko",
"tss", "go", "html-swig"
]
# All Atom packages that Atom Beautify is dependent on
dependentPackages = [
'atom-typescript'
]
# Add language packages to dependentPackages
for lang in allLanguages
do (lang) ->
dependentPackages.push("language-#{lang}")
beforeEach ->
# Install all of the languages
for lang in allLanguages
do (lang) ->
for packageName in dependentPackages
do (packageName) ->
waitsForPromise ->
atom.packages.activatePackage("language-#{lang}")
atom.packages.activatePackage(packageName)
# Activate package
waitsForPromise ->