We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3de30c commit ebfcf48Copy full SHA for ebfcf48
player/service/tests/xml.spec.js
@@ -34,4 +34,16 @@ describe("XML Parsing and Usage", async () => {
34
35
chai.expect(parsedText).to.be.equal(expectedText, "The provided XML was not parsed into the expected text");
36
});
37
+
38
39
+ it ("Handles when a Buffer is provided instead of a string", async() => {
40
41
+ let providedText = '\u0000Some text\u0000🎉🎉\u0000';
42
+ let providedBuffer = Buffer.from(providedText);
43
+ let expectedText = 'Some text';
44
45
+ let parsedText = await helpers.sanitizeXML(providedBuffer);
46
47
+ chai.expect(parsedText).to.be.equal(expectedText, "The provided XML was not parsed into the expected text");
48
+ });
49
0 commit comments