Comparing version 0.34.5 to 0.35.0
{ | ||
"name": "dcmjs", | ||
"version": "0.34.5", | ||
"version": "0.35.0", | ||
"description": "Javascript implementation of DICOM manipulation", | ||
@@ -5,0 +5,0 @@ "main": "build/dcmjs.js", |
@@ -1,1 +0,21 @@ | ||
it("No tests yet", () => {}); | ||
import "regenerator-runtime/runtime.js"; | ||
import fs from "fs"; | ||
import { jest } from "@jest/globals"; | ||
import { DicomMessage } from "../src/DicomMessage"; | ||
import { DicomMetaDictionary } from "../src/DicomMetaDictionary"; | ||
import dcmjs from "../src"; | ||
// The asset downloads in this file might take some time on a slower connection | ||
jest.setTimeout(60000); | ||
it("test_normalizer_op", async () => { | ||
const file = fs.readFileSync('test/sample-op.dcm'); | ||
const dicomDict = DicomMessage.readFile(file.buffer); | ||
const dataset = DicomMetaDictionary.naturalizeDataset(dicomDict.dict); | ||
const multiframe = dcmjs.normalizers.Normalizer.normalizeToDataset([dataset]); | ||
expect(dataset.NumberOfFrames).toEqual(1); | ||
expect(multiframe.NumberOfFrames).toEqual(1); | ||
}); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12772216
60324
15