/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v5.105.1
test/ContextModule.unittest.js
28 строк
570 B
Alexander Akait
refactor: types for benchmarks and tests
17 дек 2025, 14:16
Не верифицирован
17 дек 2025, 14:16
5bf8bc5
Код
Авторство
О чём код?
"use strict"; const ContextModule = require("../lib/ContextModule"); describe("contextModule", () => { let contextModule; /** @type {string} */ let request; beforeEach(() => { request = "/some/request"; }); describe("#identifier", () => { it("returns an safe identifier for this module", () => { contextModule = new ContextModule(() => {}, { type: "javascript/auto", request, resource: "a", mode: "lazy", regExp: /a|b/ }); expect(contextModule.identifier()).toEqual( expect.stringContaining("/a%7Cb/") ); }); }); });