Skip to content

Commit

Permalink
refactor(zoe): Remove accommodation for old interface guard error mes…
Browse files Browse the repository at this point in the history
…sages
  • Loading branch information
kriskowal committed Dec 21, 2023
1 parent 157e0e5 commit 69884dd
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions packages/zoe/test/unitTests/test-zoe.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,7 @@ test(`E(zoe).getPublicFacet - no instance`, async t => {
// @ts-expect-error deliberate invalid arguments for testing
await t.throwsAsync(() => E(zoe).getPublicFacet(), {
message:
// Golden test uses RegExp "Or" pattern to tolerate earlier versions of
// Endo.
// TODO: Remove first disjunct once no longer needed
/In "getPublicFacet" method of \(ZoeService\): (?:arg 0: .*"\[undefined\]" - Must be a remotable|Expected at least 1 arguments: \[\])/,
/In "getPublicFacet" method of \(ZoeService\): Expected at least 1 arguments: \[\]/,
});
});

Expand Down Expand Up @@ -177,10 +174,7 @@ test(`zoe.getIssuers - no instance`, async t => {
// @ts-expect-error invalid arguments for testing
await t.throwsAsync(() => E(zoe).getIssuers(), {
message:
// Golden test uses RegExp "Or" pattern to tolerate earlier versions of
// Endo.
// TODO: Remove first disjunct once no longer needed
/In "getIssuers" method of \(ZoeService\): (?:arg 0: .*"\[undefined\]" - Must be a remotable|Expected at least 1 arguments: \[\])/,
/In "getIssuers" method of \(ZoeService\): Expected at least 1 arguments: \[\]/,
});
});

Expand Down Expand Up @@ -211,9 +205,7 @@ test(`zoe.getBrands - no instance`, async t => {
// @ts-expect-error invalid arguments for testing
await t.throwsAsync(() => E(zoe).getBrands(), {
message:
// Or pattern of golden error tolerant across versions of endo.
// TODO: Remove first disjunct once no longer needed
/In "getBrands" method of \(ZoeService\): (?:arg 0: .*"\[undefined\]" - Must be a remotable|Expected at least 1 arguments: \[\])/,
/In "getBrands" method of \(ZoeService\): Expected at least 1 arguments: \[\]/,
});
});

Expand Down Expand Up @@ -269,9 +261,7 @@ test(`zoe.getTerms - no instance`, async t => {
// @ts-expect-error invalid arguments for testing
await t.throwsAsync(() => E(zoe).getTerms(), {
message:
// Or pattern of golden error tolerant across versions of endo.
// TODO: Remove first disjunct once no longer needed
/In "getTerms" method of \(ZoeService\): (?:arg 0: .*"\[undefined\]" - Must be a remotable|Expected at least 1 arguments: \[\])/,
/In "getTerms" method of \(ZoeService\): Expected at least 1 arguments: \[\]/,
});
});

Expand Down

0 comments on commit 69884dd

Please sign in to comment.