Skip to content

Commit 49ca446

Browse files
committed
Fix import tests
1 parent 7c22ff5 commit 49ca446

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

types/index.ts

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

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

763763
expectTypeOf(math.import({
764-
myvalue: 42
764+
myvalue2: 42
765765
}, {
766766
override: true
767767
})).toMatchTypeOf<void>()
768768

769769
expectTypeOf(math.import({
770-
myvalue: 42
770+
myvalue3: 42
771771
}, {
772772
silent: true
773773
})).toMatchTypeOf<void>()
774774

775775
expectTypeOf(math.import({
776-
myvalue: 42
776+
myvalue4: 42
777777
}, {
778778
wrap: true
779779
})).toMatchTypeOf<void>()
780780

781781
expectTypeOf(math.import({
782-
myvalue: 42,
782+
myvalue5: 42,
783783
})).toMatchTypeOf<void>()
784784

785785
expectTypeOf(math.import([{
786-
myvalue: 42,
786+
myvalue6: 42,
787787
}, {
788-
simplify: (name: string) => `simplify ${name}`
788+
myFunc2: (name: string) => `myFunc2 ${name}`
789789
}])).toMatchTypeOf<void>()
790790
}
791791

0 commit comments

Comments
 (0)