Skip to content

Commit

Permalink
pr
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawnMorreau committed May 1, 2024
1 parent cd74dd4 commit c2a0140
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 deletions.
4 changes: 0 additions & 4 deletions ark/attest/__tests__/benchExpectedOutput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,4 @@ bench(
.mean([2, "ms"])
.types([344, "instantiations"])

bench("arktype type", () => {
type("string")
}).types([4766, "instantiations"])

bench("empty", () => {}).types([0, "instantiations"])
5 changes: 0 additions & 5 deletions ark/attest/__tests__/benchTemplate.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { bench } from "@arktype/attest"
import { type } from "arktype"
import type { makeComplexType as externalmakeComplexType } from "./utils.js"

const fakeCallOptions = {
Expand Down Expand Up @@ -54,8 +53,4 @@ bench(
.mean()
.types()

bench("arktype type", () => {
type("string")
}).types()

bench("empty", () => {}).types()
2 changes: 1 addition & 1 deletion ark/attest/assert/assertions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const versionableAssertion =
`Unexpected missing typeAssertionEntries when passed a TypeAssertionMapper`
)
}
for (const [version, data] of ctx.typeAssertionEntries!) {
for (const [version, data] of ctx.typeRelationshipAssertionEntries) {
let errorMessage = ""
try {
const mapped = actual.fn(data, ctx)
Expand Down
2 changes: 1 addition & 1 deletion ark/attest/cache/snapshots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const getSnapshotByName = (
file: string,
name: string,
customPath: string | undefined
): any => {
): object => {
const snapshotPath = resolveSnapshotPath(file, customPath)
return readJson(snapshotPath)?.[basename(file)]?.[name]
}
Expand Down

0 comments on commit c2a0140

Please sign in to comment.