From 01d2cb5d98c6e90507d1dfba962276cf2edf9ad7 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Thu, 21 Sep 2023 00:51:48 -0700 Subject: Prettier --- test/js/web/encoding/text-decoder.test.js | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'test/js/web/encoding/text-decoder.test.js') diff --git a/test/js/web/encoding/text-decoder.test.js b/test/js/web/encoding/text-decoder.test.js index de71fb351..3685a5f6d 100644 --- a/test/js/web/encoding/text-decoder.test.js +++ b/test/js/web/encoding/text-decoder.test.js @@ -266,25 +266,24 @@ describe("TextDecoder", () => { }); describe("TextDecoder ignoreBOM", () => { - it.each([ { - encoding: 'utf-8', - bytes: [0xEF, 0xBB, 0xBF, 0x61, 0x62, 0x63] + encoding: "utf-8", + bytes: [0xef, 0xbb, 0xbf, 0x61, 0x62, 0x63], }, { - encoding: 'utf-16le', - bytes: [0xFF, 0xFE, 0x61, 0x00, 0x62, 0x00, 0x63, 0x00] - } - ])('should ignoreBOM for: %o', ({encoding, bytes}) => { - const BOM = '\uFEFF'; + encoding: "utf-16le", + bytes: [0xff, 0xfe, 0x61, 0x00, 0x62, 0x00, 0x63, 0x00], + }, + ])("should ignoreBOM for: %o", ({ encoding, bytes }) => { + const BOM = "\uFEFF"; const array = new Uint8Array(bytes); - const decoder_ignore_bom = new TextDecoder(encoding, {ignoreBOM: true}); + const decoder_ignore_bom = new TextDecoder(encoding, { ignoreBOM: true }); expect(decoder_ignore_bom.decode(array)).toStrictEqual(`${BOM}abc`); - const decoder_not_ignore_bom = new TextDecoder(encoding, {ignoreBOM: false}); - expect(decoder_not_ignore_bom.decode(array)).toStrictEqual('abc'); + const decoder_not_ignore_bom = new TextDecoder(encoding, { ignoreBOM: false }); + expect(decoder_not_ignore_bom.decode(array)).toStrictEqual("abc"); }); }); -- cgit v1.2.3