Skip to content

Commit e56cf85

Browse files
committed
Reflect purpose of override option in tests
1 parent 49ca446 commit e56cf85

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

types/index.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -756,34 +756,35 @@ declare module 'mathjs' {
756756
expectTypeOf(math.testFun()).toMatchTypeOf<number>()
757757

758758
expectTypeOf(math.import({
759-
myvalue1: 42,
759+
myvalue: 42,
760760
myFunc: (name: string) => `myFunc ${name}`
761761
})).toMatchTypeOf<void>()
762762

763763
expectTypeOf(math.import({
764-
myvalue2: 42
764+
myvalue: 42,
765+
myFunc: (name: string) => `myFunc ${name}`
765766
}, {
766767
override: true
767768
})).toMatchTypeOf<void>()
768769

769770
expectTypeOf(math.import({
770-
myvalue3: 42
771+
myvalue2: 42
771772
}, {
772773
silent: true
773774
})).toMatchTypeOf<void>()
774775

775776
expectTypeOf(math.import({
776-
myvalue4: 42
777+
myvalue3: 42
777778
}, {
778779
wrap: true
779780
})).toMatchTypeOf<void>()
780781

781782
expectTypeOf(math.import({
782-
myvalue5: 42,
783+
myvalue4: 42,
783784
})).toMatchTypeOf<void>()
784785

785786
expectTypeOf(math.import([{
786-
myvalue6: 42,
787+
myvalue5: 42,
787788
}, {
788789
myFunc2: (name: string) => `myFunc2 ${name}`
789790
}])).toMatchTypeOf<void>()

0 commit comments

Comments
 (0)