Skip to content

Commit

Permalink
chore: use recursiveResolve from ml-spectra-processing
Browse files Browse the repository at this point in the history
  • Loading branch information
lpatiny committed Dec 5, 2024
1 parent de6f6aa commit 92f9341
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 22 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"globals": "^15.13.0",
"he": "^1.2.0",
"iobuffer": "^5.3.2",
"ml-spectra-processing": "^14.8.0",
"pako": "^2.1.0",
"prettier": "^3.4.1",
"rimraf": "^6.0.1",
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/xmlParser.mz.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
import { readFileSync } from 'node:fs';
import { join } from 'node:path';

import { recursiveResolve } from 'ml-spectra-processing';
import { decode } from 'uint8-base64';
import { test, expect } from 'vitest';

import { parse } from '../parse';
import { resolveRecursive } from '../resursiveResolve';

const decoder = new TextDecoder();

Expand All @@ -28,7 +28,7 @@ test('decompress zip file', async () => {
tagValueProcessor,
}) as any;

Check warning on line 29 in src/__tests__/xmlParser.mz.test.ts

View workflow job for this annotation

GitHub Actions / nodejs / lint-eslint

Unexpected any. Specify a different type

await resolveRecursive(result);
await recursiveResolve(result);

const oneSpectrum =
result.indexedmzML.mzML.run.spectrumList.spectrum[0].binaryDataArrayList;
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/xmlParser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { readFileSync } from 'node:fs';
import { join } from 'node:path';

import { parseString } from 'dynamic-typing';
import { recursiveResolve } from 'ml-spectra-processing';
import { describe, it, expect } from 'vitest';

import { parse } from '../parse';
import { resolveRecursive } from '../resursiveResolve';

const encoder = new TextEncoder();
const decoder = new TextDecoder();
Expand Down Expand Up @@ -175,7 +175,7 @@ describe('XMLParser', () => {
},
});

await resolveRecursive(result);
await recursiveResolve(result);
expect(result).toStrictEqual(expected);
});

Expand Down
18 changes: 0 additions & 18 deletions src/resursiveResolve.ts

This file was deleted.

0 comments on commit 92f9341

Please sign in to comment.