14 lines
314 B
TypeScript
Raw Permalink Normal View History

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