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