Parcourir la source

chore(test): report correct value of `__EXTEND_POINT__` when subsequent error codes is less than it (#13213)

山吹色御守 il y a 9 mois
Parent
commit
e60edc06f2
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      packages/compiler-dom/src/errors.ts
  2. 1 1
      packages/compiler-ssr/src/errors.ts

+ 1 - 1
packages/compiler-dom/src/errors.ts

@@ -42,7 +42,7 @@ if (__TEST__) {
   if (DOMErrorCodes.X_V_HTML_NO_EXPRESSION < ErrorCodes.__EXTEND_POINT__) {
     throw new Error(
       `DOMErrorCodes need to be updated to ${
-        ErrorCodes.__EXTEND_POINT__ + 1
+        ErrorCodes.__EXTEND_POINT__
       } to match extension point from core ErrorCodes.`,
     )
   }

+ 1 - 1
packages/compiler-ssr/src/errors.ts

@@ -29,7 +29,7 @@ if (__TEST__) {
   if (SSRErrorCodes.X_SSR_UNSAFE_ATTR_NAME < DOMErrorCodes.__EXTEND_POINT__) {
     throw new Error(
       `SSRErrorCodes need to be updated to ${
-        DOMErrorCodes.__EXTEND_POINT__ + 1
+        DOMErrorCodes.__EXTEND_POINT__
       } to match extension point from core DOMErrorCodes.`,
     )
   }