From ec823b81c16135c1b6a5991e81e7beb82e3480c8 Mon Sep 17 00:00:00 2001 From: Craig Berry Date: Mon, 12 Aug 2024 17:52:20 -0400 Subject: [PATCH] Bring in test OD file from data repo --- test/OD-single-word-example.dcm | Bin 470 -> 0 bytes test/data.test.js | 10 ++++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) delete mode 100644 test/OD-single-word-example.dcm diff --git a/test/OD-single-word-example.dcm b/test/OD-single-word-example.dcm deleted file mode 100644 index 73c81cb72755f95793ff667fd88ba172ec192ec1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 470 zcmc(b!AgTc41}j^!T(f>6%l;}U9!n$H+vK9!9vS_DE||*1usG$(ML0@7q2}zmm&E` z7zX%Xtv7GG;1Q { - test('Treat OD as explicit VR with correct length', () => { - const file = fs.readFileSync(`test/OD-single-word-example.dcm`); + it('Treat OD as explicit VR with correct length', async () => { + const url = + "https://github.com/dcmjs-org/data/releases/download/od-encoding-data/OD-single-word-example.dcm"; + const dcmPath = await getTestDataset( + url, + "OD-single-word-example" + ); + const file = fs.readFileSync(dcmPath); const data = dcmjs.data.DicomMessage.readFile(new Uint8Array(file).buffer); // expect OD VR data element (VolumetricCurveUpDirections) to be read with expected value