angular-cn/tools/transpiler/spec/lang_spec.js

15 lines
321 B
JavaScript
Raw Normal View History

import {describe, it, expect} from 'test_lib/test_lib';
export function main() {
describe('lang', function() {
it('string interpolation', function() {
expect(`${123}-'${456}"`).toEqual('123-\'456"');
});
it('multiline string', function () {
expect(`1'
2"`).toEqual('1\'\n2"');
});
});
}