替换faceid为对应表情地址
npm install @geeeger/face-converterface-converter
import Converter from '@geeeger/face-converter';
describe('test', () => {
test('should pass', () => {
const faceList = [
'01',
];
const webUrl = '/';
const staticPath = 'a/';
const converter = new Converter(
faceList,
webUrl,
staticPath
);
expect(converter.getPath('1')).toEqual('/a/1.png');
expect(converter.getImgTag('1')).toEqual('
');
expect(converter.convert('[emot:01]')).toEqual('
');
});
});
``