fix(traceur): Fix a couple of unsupported or incorrect tests.
This commit is contained in:
parent
17e8857efc
commit
3285ffba16
|
@ -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);
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue