UNPKG
ml-spectra-fitting
Version:
latest (5.0.1)
pre (4.1.0-pre.1661357854)
5.0.1
5.0.0
4.2.4
4.2.3
4.2.2
4.2.1
4.2.0
4.1.1
4.1.0
4.1.0-pre.1661357854
4.0.2
4.0.1
4.0.0
3.1.0
3.0.4
3.0.3
3.0.2
3.0.1
3.0.0
2.0.0
1.0.0
0.13.0
0.12.0
0.11.0
0.10.0
0.9.0
0.8.0
0.7.1
0.7.0
0.6.0
0.5.0
0.3.2
0.3.1
0.3.0
0.2.1
Fit spectra using gaussian or lorentzian
github.com/mljs/spectra-fitting
mljs/spectra-fitting
ml-spectra-fitting
/
src
/
util
/
__tests__
/
selectMethod.test.ts
12 lines
(9 loc)
•
283 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
{ describe, expect, it }
from
'vitest'
;
import
{ selectMethod }
from
'../selectMethod.ts'
;
describe
(
'selectMethod'
,
() =>
{
it
(
'throw errors'
,
() =>
{
expect
(
() =>
{
selectMethod
({
kind
:
'fail'
as
never
}); }).
toThrow
(
'Unknown fitting algorithm'
); }); });