angular-cn/aio/tools/translator/translate.spec.ts

14 lines
314 B
TypeScript
Raw Normal View History

import { expect } from 'chai';
2018-03-24 04:33:17 -04:00
import { lookup, translate } from './translate';
2018-03-01 19:08:39 -05:00
describe('根据字典进行翻译', () => {
it('查字典', () => {
expect(lookup('# Forms')[0].translation).eql('# 表单');
});
2018-03-24 04:33:17 -04:00
it('翻译 header', () => {
expect(translate(`<header></header>`)).eql(``);
});
});