From 760b53eed9d76c8f059007831a95049499514975 Mon Sep 17 00:00:00 2001 From: Cong-Cong Date: Wed, 6 May 2026 15:46:07 +0800 Subject: [PATCH] chore: update napi ArrayExpected error message --- sri-plugin/unit.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sri-plugin/unit.test.js b/sri-plugin/unit.test.js index f88753a..a7c0f49 100644 --- a/sri-plugin/unit.test.js +++ b/sri-plugin/unit.test.js @@ -144,7 +144,7 @@ describe("sri-plugin/unit", () => { expect(compilation.errors.length).toBe(1); expect(compilation.warnings.length).toBe(0); expect(compilation.errors[0]?.message).toMatch( - /InvalidArg, Given napi value is not an array on RawSubresourceIntegrityPluginOptions.hashFuncNames/ + /ArrayExpected, Failed to get Array length on RawSubresourceIntegrityPluginOptions.hashFuncNames/ ); });