Skip to content

Commit e411316

Browse files
committed
feat!: migrate to type: module and fix testcases
1 parent 3b97933 commit e411316

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/from/fromWDF.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function getYVariables(blocks) {
4545
(block) => block.blockType === 'WDF_BLOCKID_DATA',
4646
);
4747
const yVariables = [];
48-
for (let spectrum of dataBlock.spectrum) {
48+
for (let spectrum of dataBlock.spectra) {
4949
yVariables.push({
5050
label: 'Arbitrary Intensity',
5151
data: spectrum,

src/utils/__tests__/surfaceAnalysis.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ describe('surfaceAnalysis', () => {
7676
xPixel: 5,
7777
yPixel: 5,
7878
});
79-
expect(result.matrix[0][0]).toBeCloseTo(160.6947321956272);
79+
80+
expect(result.matrix[0][0]).toBeCloseTo(113.54);
8081
});
8182
});

0 commit comments

Comments
 (0)