Skip to content

Commit

Permalink
test: linting flows
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Jul 17, 2024
1 parent cece051 commit c01bd94
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/orchestration/test/examples/bad.flows.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// TODO detect:
// - exports that don't satisfy orchestration flow type
// - exports that aren't hardened
// - any uses of E()

import { E } from '@endo/far';

export function notFlow() {
console.log('This function is not a flow');
}

export async function notHardened() {
console.log('This function is the most minimal flow, but it’s not hardened');
}

export async function usesE(orch, { someEref }) {
await E(someEref).foo();
}

0 comments on commit c01bd94

Please sign in to comment.