frontend_tests: Fix unicorn/text-encoding-identifier-case.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2022-03-01 21:52:04 -08:00 committed by Anders Kaseorg
parent d4d277bd1f
commit c09bca34b8
5 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@ const {mock_esm, set_global, with_field, zrequire} = require("../zjsunit/namespa
const {run_test} = require("../zjsunit/test");
const $ = require("../zjsunit/zjquery");
const template = fs.readFileSync("templates/corporate/billing.html", "utf-8");
const template = fs.readFileSync("templates/corporate/billing.html", "utf8");
const dom = new JSDOM(template, {pretendToBeVisual: true});
const document = dom.window.document;
const location = set_global("location", {});

View File

@ -11,7 +11,7 @@ const {run_test} = require("../zjsunit/test");
const $ = require("../zjsunit/zjquery");
const {page_params} = require("../zjsunit/zpage_params");
const template = fs.readFileSync("templates/corporate/upgrade.html", "utf-8");
const template = fs.readFileSync("templates/corporate/upgrade.html", "utf8");
const dom = new JSDOM(template, {
pretendToBeVisual: true,
url: "http://zulip.zulipdev.com/upgrade/#billing",

View File

@ -9,7 +9,7 @@ const {zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
const $ = require("../zjsunit/zjquery");
const template = fs.readFileSync("templates/analytics/realm_details.html", "utf-8");
const template = fs.readFileSync("templates/analytics/realm_details.html", "utf8");
const dom = new JSDOM(template, {pretendToBeVisual: true});
const document = dom.window.document;

View File

@ -11,7 +11,7 @@ const $ = require("../zjsunit/zjquery");
const {page_params} = require("../zjsunit/zpage_params");
const noop = () => {};
const template = fs.readFileSync("templates/corporate/upgrade.html", "utf-8");
const template = fs.readFileSync("templates/corporate/upgrade.html", "utf8");
const dom = new JSDOM(template, {pretendToBeVisual: true});
const document = dom.window.document;
const location = set_global("location", {});

View File

@ -23,7 +23,7 @@ ZJavaScriptCompiler.prototype.compiler = ZJavaScriptCompiler;
hb.JavaScriptCompiler = ZJavaScriptCompiler;
function compile_hbs(module, filename) {
const code = fs.readFileSync(filename, "utf-8");
const code = fs.readFileSync(filename, "utf8");
const pc = hb.precompile(code, {preventIndent: true, srcName: filename});
const node = new SourceNode();
node.add([