fix(traceur): Fix a couple of unsupported or incorrect tests.

This commit is contained in:
Martin Probst 2015-04-03 11:54:56 -07:00
parent 17e8857efc
commit 3285ffba16
3 changed files with 2 additions and 16 deletions

View File

@ -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);

View File

@ -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';

View File

@ -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;
}
}