From 3285ffba16ecf346e782f03cc9a5aceac57bba53 Mon Sep 17 00:00:00 2001 From: Martin Probst Date: Fri, 3 Apr 2015 11:54:56 -0700 Subject: [PATCH] fix(traceur): Fix a couple of unsupported or incorrect tests. --- tools/transpiler/spec/classes_spec.js | 6 ------ tools/transpiler/spec/reexport.js | 8 ++------ tools/transpiler/spec/types_spec.js | 4 ---- 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/tools/transpiler/spec/classes_spec.js b/tools/transpiler/spec/classes_spec.js index c518c2dfc6..d03fd3aa3b 100644 --- a/tools/transpiler/spec/classes_spec.js +++ b/tools/transpiler/spec/classes_spec.js @@ -24,7 +24,6 @@ class SubFoo extends Foo { } } -@CONST class ConstClass {} class Const { @@ -77,11 +76,6 @@ export function main() { expect(subConst.b).toBe(2); }); - it('@CONST on class without constructor should generate const constructor', function () { - var constClass = new ConstClass(); - expect(constClass).not.toBe(null); - }); - describe('inheritance', function() { it('should support super call', function () { var subFoo = new SubFoo(1, 2); diff --git a/tools/transpiler/spec/reexport.js b/tools/transpiler/spec/reexport.js index b7ad04b0f6..c7b8a12d63 100644 --- a/tools/transpiler/spec/reexport.js +++ b/tools/transpiler/spec/reexport.js @@ -1,10 +1,6 @@ import {Baz} from './baz'; import {Bar1} from './bar'; +export {Baz} from './baz'; + var localVar = true; - -export {Baz, localVar, Bar1}; - -// Will become: -// export {Baz} from './baz'; -// export {Bar1} from './bar'; diff --git a/tools/transpiler/spec/types_spec.js b/tools/transpiler/spec/types_spec.js index 4a13028e75..c738dd86a0 100644 --- a/tools/transpiler/spec/types_spec.js +++ b/tools/transpiler/spec/types_spec.js @@ -42,11 +42,7 @@ class Foo { } typedVariables() { - // TODO(vojta): test this var foo:string = 'foo'; - var typed:boolean, untyped; - var oneTyped:string = 'one', - another: boolean = true; } }