chore: replace CONST_EXPR with /*@ts2dart_const*/
This commit is contained in:

committed by
Martin Probst

parent
d2527b504a
commit
a02614beaa
@ -4,7 +4,6 @@ import {
|
||||
RegExpWrapper,
|
||||
RegExpMatcherWrapper,
|
||||
StringWrapper,
|
||||
CONST_EXPR,
|
||||
hasConstructor,
|
||||
resolveEnumToken
|
||||
} from 'angular2/src/facade/lang';
|
||||
@ -52,7 +51,7 @@ export function main() {
|
||||
|
||||
describe('const', () => {
|
||||
it('should support const expressions both in TS and Dart', () => {
|
||||
const numbers = CONST_EXPR([1, 2, 3]);
|
||||
const numbers = /*@ts2dart_const*/[1, 2, 3];
|
||||
expect(numbers).toEqual([1, 2, 3]);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user