@cornerstonejs/dicom-image-loader
Version:
Cornerstone Image Loader for DICOM WADO-URI and WADO-RS and Local file
11 lines (10 loc) • 415 B
JavaScript
import { expect } from 'chai';
import dataSetCacheManager from './dataSetCacheManager';
describe('#getInfo', () => {
it('should return cache info for an empty cache', function () {
dataSetCacheManager.purge();
const cacheInfo = dataSetCacheManager.getInfo();
expect(cacheInfo.cacheSizeInBytes).to.be.equal(0);
expect(cacheInfo.numberOfDataSetsCached).to.be.equal(0);
});
});