Skip to content

Commit

Permalink
Remove console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin McDonnell committed Oct 19, 2021
2 parents c2cc0ea + b45151d commit 67c8ad0
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 17 deletions.
2 changes: 1 addition & 1 deletion coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions deno/lib/__tests__/refine.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ test("use path in refinement context", async () => {

const t1 = await noNested.spa("asdf");
const t2 = await data.spa({ foo: "asdf" });
// console.log(t1);
// console.log(t2);

expect(t1.success).toBe(true);
expect(t2.success).toBe(false);
Expand Down
4 changes: 1 addition & 3 deletions deno/lib/__tests__/string.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ test("url validations", () => {
expect(() => url.parse("asdf")).toThrow();
expect(() => url.parse("https:/")).toThrow();
expect(() => url.parse("[email protected]")).toThrow();
} catch (err) {
// console.log(JSON.stringify(err, null, 2));
}
} catch (err) {}
});

test("url error overrides", () => {
Expand Down
1 change: 0 additions & 1 deletion deno/lib/helpers/parseUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ export class ParseStatus {
if (value.status === "dirty") status.dirty();

if (typeof value.value !== "undefined" || pair.alwaysSet) {
console.log(`set ${key.value} to ${value.value}`);
finalObject[key.value] = value.value;
}
}
Expand Down
2 changes: 0 additions & 2 deletions deno/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,6 @@ export class ZodObject<
alwaysSet: pair.alwaysSet,
});
}

return syncPairs;
})
.then((syncPairs) => {
Expand Down Expand Up @@ -2941,7 +2940,6 @@ export class ZodEffects<
path: ctx.path,
parent: ctx,
});

if (inner.status === "aborted") return INVALID;
if (inner.status === "dirty") status.dirty();

Expand Down
2 changes: 0 additions & 2 deletions src/__tests__/refine.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ test("use path in refinement context", async () => {

const t1 = await noNested.spa("asdf");
const t2 = await data.spa({ foo: "asdf" });
// console.log(t1);
// console.log(t2);

expect(t1.success).toBe(true);
expect(t2.success).toBe(false);
Expand Down
4 changes: 1 addition & 3 deletions src/__tests__/string.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ test("url validations", () => {
expect(() => url.parse("asdf")).toThrow();
expect(() => url.parse("https:/")).toThrow();
expect(() => url.parse("[email protected]")).toThrow();
} catch (err) {
// console.log(JSON.stringify(err, null, 2));
}
} catch (err) {}
});

test("url error overrides", () => {
Expand Down
1 change: 0 additions & 1 deletion src/helpers/parseUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ export class ParseStatus {
if (value.status === "dirty") status.dirty();

if (typeof value.value !== "undefined" || pair.alwaysSet) {
console.log(`set ${key.value} to ${value.value}`);
finalObject[key.value] = value.value;
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,6 @@ export class ZodObject<
alwaysSet: pair.alwaysSet,
});
}

return syncPairs;
})
.then((syncPairs) => {
Expand Down Expand Up @@ -2941,7 +2940,6 @@ export class ZodEffects<
path: ctx.path,
parent: ctx,
});

if (inner.status === "aborted") return INVALID;
if (inner.status === "dirty") status.dirty();

Expand Down

0 comments on commit 67c8ad0

Please sign in to comment.