Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Feb 17, 2023
1 parent ad24f69 commit 617a25a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions integrationTests/node/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ assert.deepStrictEqual(result, {
},
});

/**
* The below test triggers a call `invariant` method during execution (by
* passing a negative number to the `initialCount` parameter on the `@stream`
* directive). This ensures that the `inlineInvariant` method called by our
* build script works correctly.
**/

const experimentalSchema = buildSchema(`
directive @stream(initialCount: Int!) on FIELD
Expand Down
7 changes: 7 additions & 0 deletions integrationTests/node/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ assert.deepStrictEqual(result, {
},
});

/**
* The below test triggers a call `invariant` method during execution (by
* passing a negative number to the `initialCount` parameter on the `@stream`
* directive). This ensures that the `inlineInvariant` method called by our
* build script works correctly.
**/

const experimentalSchema = buildSchema(`
directive @stream(initialCount: Int!) on FIELD
Expand Down

0 comments on commit 617a25a

Please sign in to comment.