From 8380c0db3f23167bfb192bd560ab81363edb7451 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Elsd=C3=B6rfer?= Date: Tue, 19 Nov 2019 11:51:37 +0000 Subject: [PATCH] Fix typescript version. --- requirements-dev.sh | 2 +- tests/test_filters.py | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/requirements-dev.sh b/requirements-dev.sh index 081e8432..1c8a24ce 100755 --- a/requirements-dev.sh +++ b/requirements-dev.sh @@ -21,7 +21,7 @@ npm install -g coffee-script@1.6.2 npm install -g clean-css@1.0.2 npm install -g stylus npm install -g handlebars -npm install -g typescript +npm install -g typescript@3.7.2 npm install -g requirejs@2.1.11 npm install -g babel-cli@6.18.0 --save # Don't install the babel-preset globally because diff --git a/tests/test_filters.py b/tests/test_filters.py index d1620ce6..6c343934 100644 --- a/tests/test_filters.py +++ b/tests/test_filters.py @@ -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):