Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Oct 4, 2023
1 parent 526dc18 commit f3eb9aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/src/grant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,13 @@ export default () =>
});
t.ok(false);
} catch (e) {
const correctError = JSON.stringify(e).includes("ZomeFnNotExists");

t.ok(
JSON.stringify(e).includes("ZomeFnNotExists"),
correctError,
"read_posts_for_author should make a call_remote to `request_read_private_publication_posts` and return the error if ZomeCallResponse contains one"
);
if (!correctError) throw e;
}
} else {
console.log(
Expand Down

0 comments on commit f3eb9aa

Please sign in to comment.