Files
react-native-devtools-frontend/node_modules/html-escaper/test/index.js
T
Tim van der Lippe a4e6e7642d Update karma-typescript to 5.0.2
There don't appear to be any relevant breaking changes in
https://github.com/monounity/karma-typescript/releases/tag/v5.0.0

R=jacktfranklin@chromium.org
DISABLE_THIRD_PARTY_CHECK=Update karma-typescript

Bug: 1068145
Change-Id: I780d8c572bbfc4253f3ff5e52a33c23733d4262a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2137388
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
2020-04-07 14:47:34 +00:00

24 lines
459 B
JavaScript

delete Object.freeze;
var html = require('../cjs');
console.assert(
html.escape('&<>\'"') === '&amp;&lt;&gt;&#39;&quot;',
'correct escape'
);
console.assert(
html.escape('<>\'"&') === '&lt;&gt;&#39;&quot;&amp;',
'correct inverted escape'
);
console.assert(
'&<>\'"' === html.unescape('&amp;&lt;&gt;&#39;&quot;'),
'correct unescape'
);
console.assert(
'<>\'"&' === html.unescape('&lt;&gt;&#39;&quot;&amp;'),
'correct inverted unescape'
);