Skip to content

Commit

Permalink
Fix typescript version.
Browse files Browse the repository at this point in the history
  • Loading branch information
miracle2k committed Nov 19, 2019
1 parent 8d4a5d6 commit 8380c0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion requirements-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ npm install -g [email protected]
npm install -g [email protected]
npm install -g stylus
npm install -g handlebars
npm install -g typescript
npm install -g typescript@3.7.2
npm install -g [email protected]
npm install -g [email protected] --save
# Don't install the babel-preset globally because
Expand Down
7 changes: 1 addition & 6 deletions tests/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1491,12 +1491,7 @@ def setup(self):

def test(self):
self.mkbundle('foo.ts', filters='typescript', output='out.js').build()
assert self.get("out.js") in [
# older versions of typescript
'var X = (function () {\n function X() {\n }\n return X;\n})();\n',
# newer versions
'var X = (function () {\n function X() {\n }\n return X;\n}());\n'
]
assert self.get("out.js") == 'var X = /** @class */ (function () {\n function X() {\n }\n return X;\n}());\n'


class TestRequireJS(TempEnvironmentHelper):
Expand Down

0 comments on commit 8380c0d

Please sign in to comment.