/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v5.100.2
test/WebpackError.unittest.js
23 строки
575 B
Alexander Akait
chore: more eslint rules (#19667)
08 июл 2025, 17:46
Не верифицирован
08 июл 2025, 17:46
5a204dc
Код
Авторство
О чём код?
"use strict"; const WebpackError = require("../lib/WebpackError"); describe("WebpackError", () => { class CustomError extends WebpackError { constructor() { super(); this.name = "CustomError"; this.message = "CustomMessage"; this.details = "CustomDetails"; Error.captureStackTrace(this, this.constructor); } } it("should provide inspect method for use by for util.inspect", () => { const error = new CustomError("Message"); expect(error.toString()).toContain("CustomError: CustomMessage"); expect(error.stack).toContain(__filename); }); });