tarnslate: html entites test
This commit is contained in:
parent
69e1fbd8ff
commit
aca012af6a
|
@ -73,6 +73,7 @@
|
||||||
"build:demo": "BUILD_GH_PAGES=true webpack --config webpack_config/webpack.prod.js",
|
"build:demo": "BUILD_GH_PAGES=true webpack --config webpack_config/webpack.prod.js",
|
||||||
"test": "jest --config=jest_config/jest.config.json --coverage",
|
"test": "jest --config=jest_config/jest.config.json --coverage",
|
||||||
"dev": "node webpack_config/server.js",
|
"dev": "node webpack_config/server.js",
|
||||||
"flow": "flow"
|
"flow": "flow",
|
||||||
|
"start": "npm run dev"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,4 +66,10 @@ describe('markupToReact', () => {
|
||||||
];
|
];
|
||||||
expect(markupToReact(value)).toEqual(expected);
|
expect(markupToReact(value)).toEqual(expected);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('converts html entities', () => {
|
||||||
|
let value = '&&';
|
||||||
|
let expected = '&&';
|
||||||
|
expect(markupToReact(value)).toEqual(expected);
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue