Skip to content

Commit 1f6864f

Browse files
committed
test: address some code review comments to streamline tests
1 parent 80f597f commit 1f6864f

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

test/types/schema.test.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ export function autoTypedSchema() {
412412
array5: any[];
413413
array6: string[];
414414
array7?: string[];
415+
array8?: string[];
415416
decimal1?: Types.Decimal128;
416417
decimal2?: Types.Decimal128;
417418
decimal3?: Types.Decimal128;
@@ -458,6 +459,7 @@ export function autoTypedSchema() {
458459
array5: [],
459460
array6: { type: [String] },
460461
array7: { type: [String], default: undefined },
462+
array8: { type: [String], default: () => undefined },
461463
decimal1: Schema.Types.Decimal128,
462464
decimal2: 'Decimal128',
463465
decimal3: 'decimal128'
@@ -870,15 +872,3 @@ function gh12431() {
870872
type Example = InferSchemaType<typeof testSchema>;
871873
expectType<{ testDate?: Date, testDecimal?: Types.Decimal128 }>({} as Example);
872874
}
873-
874-
function gh12420() {
875-
const TestSchema = new Schema(
876-
{
877-
comments: { type: [String], default: () => undefined }
878-
}
879-
);
880-
881-
expectType<{
882-
comments?: string[]
883-
}>({} as InferSchemaType<typeof TestSchema>);
884-
}

0 commit comments

Comments
 (0)