Describe the motivation
We move the conversion of rawValuesFp64 to float number test to the frontend unit test. ICD-RxJS tests focus on the protobuf communication between the frontend and the backend, ICD-RxJS tests are only testing the compressed rawValuesFp64.
The conversion of rawValuesFp64 to float number is located in carta-frontend/src/utilities/Processed/Processed.ts line 59 ProcessSpectralProfile
The frontend unit test will test this line:
new Float64Array(profile.rawValuesFp64.slice().buffer)
Expected behavior
An example for the frontend unit test:
Describe the motivation We move the conversion of rawValuesFp64 to float number test to the frontend unit test. ICD-RxJS tests focus on the protobuf communication between the frontend and the backend, ICD-RxJS tests are only testing the compressed rawValuesFp64.
The conversion of rawValuesFp64 to float number is located in carta-frontend/src/utilities/Processed/Processed.ts line 59 ProcessSpectralProfile
The frontend unit test will test this line: new Float64Array(profile.rawValuesFp64.slice().buffer)
Expected behavior An example for the frontend unit test:
Should convert the unit8Array
to actual coordinate