tarnslate: html entites test

This commit is contained in:
crptm 2017-06-02 00:13:59 +04:00
parent 69e1fbd8ff
commit aca012af6a
2 changed files with 8 additions and 1 deletions

View File

@ -73,6 +73,7 @@
"build:demo": "BUILD_GH_PAGES=true webpack --config webpack_config/webpack.prod.js",
"test": "jest --config=jest_config/jest.config.json --coverage",
"dev": "node webpack_config/server.js",
"flow": "flow"
"flow": "flow",
"start": "npm run dev"
}
}

View File

@ -66,4 +66,10 @@ describe('markupToReact', () => {
];
expect(markupToReact(value)).toEqual(expected);
});
it('converts html entities', () => {
let value = '&&';
let expected = '&&';
expect(markupToReact(value)).toEqual(expected);
})
});