Skip to content

Commit

Permalink
fix: userContext-test-for-custom-framework
Browse files Browse the repository at this point in the history
  • Loading branch information
deepjyoti30-st committed Oct 16, 2024
1 parent 13e23ac commit 81980b5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/userContext.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,12 @@ describe(`userContext: ${printPath("[test/userContext.test.js]")}`, function ()
{
fileName: "lib/ts/nextjs.ts",
shouldNotContain: ["userContext: Record<String, any>", "userContext?: UserContext"],
canContain: [{ text: "userContext?: Record<String, any>", count: 2 }],
canContain: [{ text: "userContext?: Record<String, any>", count: 1 }],
},
{
fileName: "lib/ts/customFramework.ts",
shouldNotContain: ["userContext: Record<String, any>", "userContext?: UserContext"],
canContain: [{ text: "userContext?: Record<String, any>", count: 1 }],
},
];

Expand Down

0 comments on commit 81980b5

Please sign in to comment.