4e05621c378e543ac0faade45f3881ad09cedd6d.svn-base 459 Bytes
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'
);