Skip to content

Commit

Permalink
refactor: change CJS test code
Browse files Browse the repository at this point in the history
  • Loading branch information
jarqvi committed Jan 29, 2024
1 parent 2507509 commit 85f1b46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/standalone.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ describe("standalone code generation", () => {
testExportTypeCjs(moduleCode, true)
const m = requireFromString(moduleCode)
testExport(m)
testExport(m.default)
testExport(m.Ajv)

function testExport(validate: AnyValidateFunction<unknown>) {
assert.strictEqual(validate(1), true)
Expand Down

0 comments on commit 85f1b46

Please sign in to comment.