eslint: Fix unicorn/prefer-node-protocol.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-10-08 15:25:41 -07:00 committed by Tim Abbott
parent 9c2f38193d
commit ba8b9a445b
184 changed files with 191 additions and 192 deletions

View File

@ -127,7 +127,6 @@ module.exports = {
"unicorn/numeric-separators-style": "off", "unicorn/numeric-separators-style": "off",
"unicorn/prefer-global-this": "off", "unicorn/prefer-global-this": "off",
"unicorn/prefer-module": "off", "unicorn/prefer-module": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/prefer-string-raw": "off", "unicorn/prefer-string-raw": "off",
"unicorn/prefer-ternary": "off", "unicorn/prefer-ternary": "off",
"unicorn/prefer-top-level-await": "off", "unicorn/prefer-top-level-await": "off",

View File

@ -2,7 +2,7 @@
"use strict"; "use strict";
const fs = require("fs"); const fs = require("node:fs");
const Diff = require("diff"); const Diff = require("diff");
const ExampleValidator = require("openapi-examples-validator"); const ExampleValidator = require("openapi-examples-validator");

View File

@ -2,7 +2,7 @@
/* global $, CSS */ /* global $, CSS */
const path = require("path"); const path = require("node:path");
const {program} = require("commander"); const {program} = require("commander");
require("css.escape"); require("css.escape");

View File

@ -2,7 +2,7 @@
/* global $, CSS */ /* global $, CSS */
const path = require("path"); const path = require("node:path");
const {program} = require("commander"); const {program} = require("commander");
require("css.escape"); require("css.escape");

View File

@ -2,7 +2,7 @@
// debugging. It also exposes the list of modules it knows about as the keys // debugging. It also exposes the list of modules it knows about as the keys
// of the require.ids object. // of the require.ids object.
import path from "path"; import path from "node:path";
import type {ResolveRequest} from "enhanced-resolve"; import type {ResolveRequest} from "enhanced-resolve";
import type {Chunk, Compiler, WebpackPluginInstance} from "webpack"; import type {Chunk, Compiler, WebpackPluginInstance} from "webpack";

View File

@ -1,4 +1,4 @@
import {strict as assert} from "assert"; import assert from "node:assert/strict";
import type {Page} from "puppeteer"; import type {Page} from "puppeteer";

View File

@ -1,4 +1,4 @@
import {strict as assert} from "assert"; import assert from "node:assert/strict";
import type {Page} from "puppeteer"; import type {Page} from "puppeteer";

View File

@ -1,4 +1,4 @@
import {strict as assert} from "assert"; import assert from "node:assert/strict";
import type {Page} from "puppeteer"; import type {Page} from "puppeteer";

View File

@ -1,4 +1,4 @@
import {strict as assert} from "assert"; import assert from "node:assert/strict";
import type {Page} from "puppeteer"; import type {Page} from "puppeteer";

View File

@ -1,4 +1,4 @@
import {strict as assert} from "assert"; import assert from "node:assert/strict";
import type {Page} from "puppeteer"; import type {Page} from "puppeteer";

View File

@ -1,4 +1,4 @@
import {strict as assert} from "assert"; import assert from "node:assert/strict";
import type {Page} from "puppeteer"; import type {Page} from "puppeteer";

View File

@ -1,4 +1,4 @@
import {strict as assert} from "assert"; import assert from "node:assert/strict";
import type {Page} from "puppeteer"; import type {Page} from "puppeteer";

View File

@ -1,7 +1,7 @@
import {strict as assert} from "assert"; import assert from "node:assert/strict";
import "css.escape"; import "css.escape";
import path from "path"; import path from "node:path";
import timersPromises from "timers/promises"; import timersPromises from "node:timers/promises";
import ErrorStackParser from "error-stack-parser"; import ErrorStackParser from "error-stack-parser";
import type {Browser, ConsoleMessage, ConsoleMessageLocation, ElementHandle, Page} from "puppeteer"; import type {Browser, ConsoleMessage, ConsoleMessageLocation, ElementHandle, Page} from "puppeteer";

View File

@ -1,4 +1,4 @@
import {strict as assert} from "assert"; import assert from "node:assert/strict";
import type {Page} from "puppeteer"; import type {Page} from "puppeteer";

View File

@ -1,4 +1,4 @@
import {strict as assert} from "assert"; import assert from "node:assert/strict";
import type {Page} from "puppeteer"; import type {Page} from "puppeteer";

View File

@ -1,4 +1,4 @@
import {strict as assert} from "assert"; import assert from "node:assert/strict";
import type {Page} from "puppeteer"; import type {Page} from "puppeteer";

View File

@ -1,4 +1,4 @@
import {strict as assert} from "assert"; import assert from "node:assert/strict";
import type {Page} from "puppeteer"; import type {Page} from "puppeteer";
import {z} from "zod"; import {z} from "zod";

View File

@ -1,4 +1,4 @@
import {strict as assert} from "assert"; import assert from "node:assert/strict";
import type {Page} from "puppeteer"; import type {Page} from "puppeteer";

View File

@ -1,4 +1,4 @@
import {strict as assert} from "assert"; import assert from "node:assert/strict";
import type {Page} from "puppeteer"; import type {Page} from "puppeteer";

View File

@ -1,4 +1,4 @@
import {strict as assert} from "assert"; import assert from "node:assert/strict";
import type {Page} from "puppeteer"; import type {Page} from "puppeteer";

View File

@ -1,4 +1,4 @@
import {strict as assert} from "assert"; import assert from "node:assert/strict";
import type {Page} from "puppeteer"; import type {Page} from "puppeteer";

View File

@ -1,4 +1,4 @@
import {strict as assert} from "assert"; import assert from "node:assert/strict";
import type {Page} from "puppeteer"; import type {Page} from "puppeteer";

View File

@ -1,4 +1,4 @@
import {strict as assert} from "assert"; import assert from "node:assert/strict";
import type {Page} from "puppeteer"; import type {Page} from "puppeteer";

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const path = require("path"); const path = require("node:path");
const {media_breakpoints} = require("./src/css_variables"); const {media_breakpoints} = require("./src/css_variables");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const { const {
clear_buddy_list, clear_buddy_list,

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {set_global, zrequire} = require("./lib/namespace"); const {set_global, zrequire} = require("./lib/namespace");
const {run_test} = require("./lib/test"); const {run_test} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {$t} = require("./lib/i18n"); const {$t} = require("./lib/i18n");
const {mock_esm, zrequire} = require("./lib/namespace"); const {mock_esm, zrequire} = require("./lib/namespace");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {zrequire} = require("./lib/namespace"); const {zrequire} = require("./lib/namespace");
const {run_test} = require("./lib/test"); const {run_test} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {zrequire} = require("./lib/namespace"); const {zrequire} = require("./lib/namespace");
const {run_test} = require("./lib/test"); const {run_test} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {zrequire} = require("./lib/namespace"); const {zrequire} = require("./lib/namespace");
const {make_stub} = require("./lib/stub"); const {make_stub} = require("./lib/stub");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const _ = require("lodash"); const _ = require("lodash");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const _ = require("lodash"); const _ = require("lodash");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {mock_jquery, mock_esm, set_global, zrequire} = require("./lib/namespace"); const {mock_jquery, mock_esm, set_global, zrequire} = require("./lib/namespace");
const {run_test} = require("./lib/test"); const {run_test} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {zrequire} = require("./lib/namespace"); const {zrequire} = require("./lib/namespace");
const {run_test} = require("./lib/test"); const {run_test} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {mock_esm, set_global, zrequire} = require("./lib/namespace"); const {mock_esm, set_global, zrequire} = require("./lib/namespace");
const {run_test, noop} = require("./lib/test"); const {run_test, noop} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {$t} = require("./lib/i18n"); const {$t} = require("./lib/i18n");
const {mock_jquery, zrequire} = require("./lib/namespace"); const {mock_jquery, zrequire} = require("./lib/namespace");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const MockDate = require("mockdate"); const MockDate = require("mockdate");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {mock_banners} = require("./lib/compose_banner"); const {mock_banners} = require("./lib/compose_banner");
const {mock_esm, set_global, zrequire} = require("./lib/namespace"); const {mock_esm, set_global, zrequire} = require("./lib/namespace");

View File

@ -1,7 +1,7 @@
"use strict"; "use strict";
// Setup // Setup
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {mock_esm, set_global, zrequire} = require("./lib/namespace"); const {mock_esm, set_global, zrequire} = require("./lib/namespace");
const {run_test, noop} = require("./lib/test"); const {run_test, noop} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {mock_jquery, zrequire} = require("./lib/namespace"); const {mock_jquery, zrequire} = require("./lib/namespace");
const {run_test} = require("./lib/test"); const {run_test} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {mock_esm, zrequire} = require("./lib/namespace"); const {mock_esm, zrequire} = require("./lib/namespace");
const {run_test} = require("./lib/test"); const {run_test} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {mock_esm, zrequire} = require("./lib/namespace"); const {mock_esm, zrequire} = require("./lib/namespace");
const {run_test, noop} = require("./lib/test"); const {run_test, noop} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {$t} = require("./lib/i18n"); const {$t} = require("./lib/i18n");
const {mock_esm, set_global, zrequire} = require("./lib/namespace"); const {mock_esm, set_global, zrequire} = require("./lib/namespace");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {mock_banners} = require("./lib/compose_banner"); const {mock_banners} = require("./lib/compose_banner");
const {$t} = require("./lib/i18n"); const {$t} = require("./lib/i18n");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const events = require("./lib/events"); const events = require("./lib/events");
const {mock_esm, set_global, with_overrides, zrequire} = require("./lib/namespace"); const {mock_esm, set_global, with_overrides, zrequire} = require("./lib/namespace");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {mock_banners} = require("./lib/compose_banner"); const {mock_banners} = require("./lib/compose_banner");
const {mock_esm, set_global, with_overrides, zrequire} = require("./lib/namespace"); const {mock_esm, set_global, with_overrides, zrequire} = require("./lib/namespace");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {zrequire} = require("./lib/namespace"); const {zrequire} = require("./lib/namespace");
const {run_test} = require("./lib/test"); const {run_test} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {set_global, zrequire} = require("./lib/namespace"); const {set_global, zrequire} = require("./lib/namespace");
const {run_test} = require("./lib/test"); const {run_test} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const events = require("./lib/events"); const events = require("./lib/events");
const {mock_esm, set_global, with_overrides, zrequire} = require("./lib/namespace"); const {mock_esm, set_global, with_overrides, zrequire} = require("./lib/namespace");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const events = require("./lib/events"); const events = require("./lib/events");
const {mock_esm, zrequire} = require("./lib/namespace"); const {mock_esm, zrequire} = require("./lib/namespace");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {mock_banners} = require("./lib/compose_banner"); const {mock_banners} = require("./lib/compose_banner");
const {mock_esm, set_global, zrequire} = require("./lib/namespace"); const {mock_esm, set_global, zrequire} = require("./lib/namespace");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const MockDate = require("mockdate"); const MockDate = require("mockdate");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const events = require("./lib/events"); const events = require("./lib/events");
const {zrequire} = require("./lib/namespace"); const {zrequire} = require("./lib/namespace");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const _ = require("lodash"); const _ = require("lodash");

View File

@ -7,7 +7,7 @@
// The statements below are pretty typical for most node // The statements below are pretty typical for most node
// tests. The reason we need these helpers will hopefully // tests. The reason we need these helpers will hopefully
// become clear as you keep reading. // become clear as you keep reading.
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {make_stream} = require("./lib/example_stream"); const {make_stream} = require("./lib/example_stream");
const {make_user} = require("./lib/example_user"); const {make_user} = require("./lib/example_user");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {make_stream} = require("./lib/example_stream"); const {make_stream} = require("./lib/example_stream");
const {make_user} = require("./lib/example_user"); const {make_user} = require("./lib/example_user");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {make_stream} = require("./lib/example_stream"); const {make_stream} = require("./lib/example_stream");
const {zrequire} = require("./lib/namespace"); const {zrequire} = require("./lib/namespace");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {make_bot} = require("./lib/example_user"); const {make_bot} = require("./lib/example_user");
const {mock_esm, zrequire} = require("./lib/namespace"); const {mock_esm, zrequire} = require("./lib/namespace");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {make_user} = require("./lib/example_user"); const {make_user} = require("./lib/example_user");
const {mock_esm, zrequire} = require("./lib/namespace"); const {mock_esm, zrequire} = require("./lib/namespace");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {make_stub} = require("./lib/stub"); const {make_stub} = require("./lib/stub");
const {run_test, noop} = require("./lib/test"); const {run_test, noop} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {make_stream} = require("./lib/example_stream"); const {make_stream} = require("./lib/example_stream");
const {mock_esm, set_global, zrequire} = require("./lib/namespace"); const {mock_esm, set_global, zrequire} = require("./lib/namespace");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {make_user} = require("./lib/example_user"); const {make_user} = require("./lib/example_user");
const {mock_esm, zrequire} = require("./lib/namespace"); const {mock_esm, zrequire} = require("./lib/namespace");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {zrequire} = require("./lib/namespace"); const {zrequire} = require("./lib/namespace");
const {run_test} = require("./lib/test"); const {run_test} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {mock_esm, zrequire} = require("./lib/namespace"); const {mock_esm, zrequire} = require("./lib/namespace");
const {run_test} = require("./lib/test"); const {run_test} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {parseOneAddress} = require("email-addresses"); const {parseOneAddress} = require("email-addresses");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {zrequire} = require("./lib/namespace"); const {zrequire} = require("./lib/namespace");
const {run_test} = require("./lib/test"); const {run_test} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {zrequire} = require("./lib/namespace"); const {zrequire} = require("./lib/namespace");
const {run_test} = require("./lib/test"); const {run_test} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const message_link_test_cases = require("../../zerver/tests/fixtures/message_link_test_cases"); const message_link_test_cases = require("../../zerver/tests/fixtures/message_link_test_cases");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {mock_esm, set_global, zrequire} = require("./lib/namespace"); const {mock_esm, set_global, zrequire} = require("./lib/namespace");
const {run_test} = require("./lib/test"); const {run_test} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {mock_esm, set_global, with_overrides, zrequire} = require("./lib/namespace"); const {mock_esm, set_global, with_overrides, zrequire} = require("./lib/namespace");
const {make_stub} = require("./lib/stub"); const {make_stub} = require("./lib/stub");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const _ = require("lodash"); const _ = require("lodash");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {mock_esm, set_global, zrequire} = require("./lib/namespace"); const {mock_esm, set_global, zrequire} = require("./lib/namespace");
const {run_test, noop} = require("./lib/test"); const {run_test, noop} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {zrequire} = require("./lib/namespace"); const {zrequire} = require("./lib/namespace");
const {run_test} = require("./lib/test"); const {run_test} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {zrequire} = require("./lib/namespace"); const {zrequire} = require("./lib/namespace");
const {run_test} = require("./lib/test"); const {run_test} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {zrequire} = require("./lib/namespace"); const {zrequire} = require("./lib/namespace");
const {run_test} = require("./lib/test"); const {run_test} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {mock_esm, set_global, zrequire} = require("./lib/namespace"); const {mock_esm, set_global, zrequire} = require("./lib/namespace");
const {run_test} = require("./lib/test"); const {run_test} = require("./lib/test");

View File

@ -1,7 +1,7 @@
"use strict"; "use strict";
const fs = require("fs"); const fs = require("node:fs");
const path = require("path"); const path = require("node:path");
const Handlebars = require("handlebars"); const Handlebars = require("handlebars");
const {SourceMapConsumer, SourceNode} = require("source-map"); const {SourceMapConsumer, SourceNode} = require("source-map");

View File

@ -1,7 +1,7 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const path = require("path"); const path = require("node:path");
require("css.escape"); require("css.escape");
require("handlebars/runtime"); require("handlebars/runtime");

View File

@ -22,7 +22,7 @@
* HTML. This makes it easier to spot relevant differences. * HTML. This makes it easier to spot relevant differences.
*/ */
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {JSDOM} = require("jsdom"); const {JSDOM} = require("jsdom");
const _ = require("lodash"); const _ = require("lodash");

View File

@ -1,8 +1,8 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const Module = require("module"); const Module = require("node:module");
const path = require("path"); const path = require("node:path");
const callsites = require("callsites"); const callsites = require("callsites");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
// Stubs don't do any magical modifications to your namespace. They // Stubs don't do any magical modifications to your namespace. They
// just provide you a function that records what arguments get passed // just provide you a function that records what arguments get passed

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
function make_zblueslip() { function make_zblueslip() {
const lib = {}; const lib = {};

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
/* /*
When using zjquery, the first call to $("#foo") When using zjquery, the first call to $("#foo")

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const FakeEvent = require("./zjquery_event"); const FakeEvent = require("./zjquery_event");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {zrequire} = require("./lib/namespace"); const {zrequire} = require("./lib/namespace");
const {run_test} = require("./lib/test"); const {run_test} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {zrequire} = require("./lib/namespace"); const {zrequire} = require("./lib/namespace");
const {run_test, noop} = require("./lib/test"); const {run_test, noop} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {mock_esm, mock_jquery, zrequire} = require("./lib/namespace"); const {mock_esm, mock_jquery, zrequire} = require("./lib/namespace");
const {run_test, noop} = require("./lib/test"); const {run_test, noop} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const markdown_test_cases = require("../../zerver/tests/fixtures/markdown_test_cases"); const markdown_test_cases = require("../../zerver/tests/fixtures/markdown_test_cases");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const url_template_lib = require("url-template"); const url_template_lib = require("url-template");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {mock_esm, zrequire} = require("./lib/namespace"); const {mock_esm, zrequire} = require("./lib/namespace");
const {run_test} = require("./lib/test"); const {run_test} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {mock_esm, zrequire} = require("./lib/namespace"); const {mock_esm, zrequire} = require("./lib/namespace");
const {run_test, noop} = require("./lib/test"); const {run_test, noop} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {mock_esm, set_global, with_overrides, zrequire} = require("./lib/namespace"); const {mock_esm, set_global, with_overrides, zrequire} = require("./lib/namespace");
const {run_test} = require("./lib/test"); const {run_test} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {mock_esm, set_global, zrequire} = require("./lib/namespace"); const {mock_esm, set_global, zrequire} = require("./lib/namespace");
const {make_stub} = require("./lib/stub"); const {make_stub} = require("./lib/stub");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {zrequire} = require("./lib/namespace"); const {zrequire} = require("./lib/namespace");
const {run_test} = require("./lib/test"); const {run_test} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const _ = require("lodash"); const _ = require("lodash");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {mock_esm, set_global, zrequire} = require("./lib/namespace"); const {mock_esm, set_global, zrequire} = require("./lib/namespace");
const {run_test, noop} = require("./lib/test"); const {run_test, noop} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {mock_esm, zrequire} = require("./lib/namespace"); const {mock_esm, zrequire} = require("./lib/namespace");
const {run_test} = require("./lib/test"); const {run_test} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {zrequire} = require("./lib/namespace"); const {zrequire} = require("./lib/namespace");
const {run_test} = require("./lib/test"); const {run_test} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {mock_esm, set_global, zrequire} = require("./lib/namespace"); const {mock_esm, set_global, zrequire} = require("./lib/namespace");
const {run_test, noop} = require("./lib/test"); const {run_test, noop} = require("./lib/test");

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
const {strict: assert} = require("assert"); const assert = require("node:assert/strict");
const {zrequire} = require("./lib/namespace"); const {zrequire} = require("./lib/namespace");
const {run_test} = require("./lib/test"); const {run_test} = require("./lib/test");

Some files were not shown because too many files have changed in this diff Show More