mirror of https://github.com/zulip/zulip.git
frontend_tests: Fix unicorn/text-encoding-identifier-case.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
d4d277bd1f
commit
c09bca34b8
|
@ -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", {});
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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", {});
|
||||
|
|
|
@ -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([
|
||||
|
|
Loading…
Reference in New Issue