UNPKG

arb-convert

Version:

Convert Application Resource Bundle (ARB) translation files to other translation formats and back

11 lines (10 loc) 521 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var escapeValue_1 = __importDefault(require("../escapeValue")); test('escapes values with special characters properly', function () { expect(escapeValue_1.default('<foo bar="baz" oh=\'yeah\'>&amp;</foo>')) .toBe('&lt;foo bar=&quot;baz&quot; oh=&apos;yeah&apos;&gt;&amp;amp;&lt;/foo&gt;'); });