const { expect } = require('chai'); const { mark } = require('./translator'); describe('translator', () => { it('mark translation results and origins', () => { expect(mark('

AngularJS to Angular

\n

从 AngularJS 到 Angular 快速参考

')) .toEqual('

AngularJS to Angular

\n

从 AngularJS 到 Angular 快速参考

'); }); });