Skip to content

Commit

Permalink
Merge pull request #5 from DaTebe/4-example-not-working
Browse files Browse the repository at this point in the history
fix: example fixed
  • Loading branch information
DaTebe authored Jan 13, 2023
2 parents 728ecd6 + afeaabf commit af5ef56
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ support.addDestroyActionExtension(
}
);
support.addPreAllEvaluationHook((destroyclaim) => {
destroyclaim.setState("test", "banana");
destroyclaim.setState("test", "state");
console.log(
`before all evaluation hook of destroy claim ${
destroyclaim.getDestroyClaimOriginalJSON().id
destroyclaim.getDestroyClaimJSON().id
}`
);
console.log(`state = ${JSON.stringify(destroyclaim.getState())}`);
console.log(`state = ${JSON.stringify(destroyclaim.getState("test"))}`);
});
support.addPostAllEvaluationHook(() => {
console.log("after all evalúation hook");
Expand Down Expand Up @@ -226,7 +226,7 @@ const testFiles = [

const dc = new DestroyClaim(exampleDestroyClaim, support.getSupportObject());
try {
if (isManualMode(dc.getDestroyClaimOriginalJSON())) {
if (isManualMode(dc.getDestroyClaimJSON())) {
// eslint-disable-next-line global-require
const readline = require("readline");
const rl = readline.createInterface({
Expand Down

0 comments on commit af5ef56

Please sign in to comment.