Skip to content

Commit

Permalink
enabled tests and fixed scales
Browse files Browse the repository at this point in the history
  • Loading branch information
munteannatan committed Feb 7, 2024
1 parent 8fdd9fa commit a251205
Showing 1 changed file with 10 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import {
defaultHorizontalScale,
defaultVerticalScale,
getWaferMapDies,
getWaferMapMockPrerendering
getWaferMapMockPrerendering,
getScaleBand
} from './utilities';

describe('Wafermap Prerendering module', () => {
Expand Down Expand Up @@ -250,10 +251,7 @@ describe('Wafermap Prerendering module', () => {
});
});

// Test disabled as it currently does not have expect statements
// that run to perform any useful validation
// See: https://github.com/ni/nimble/issues/1746
xdescribe('with non numeric values', () => {
describe('with non numeric values', () => {
const dieDimensions = { width: 10, height: 10 };
const dieLabelsSuffix = '';
const dieLabelsHidden = true;
Expand All @@ -280,8 +278,8 @@ describe('Wafermap Prerendering module', () => {
const dataManagerMock = getDataManagerMock(
dieDimensions,
margin,
defaultHorizontalScale,
defaultVerticalScale
getScaleBand([0, 1], [0, 100]),
getScaleBand([0, 1], [0, 100])
);
prerenderingModule = new Prerendering(
waferMock as WaferMap,
Expand All @@ -291,7 +289,7 @@ describe('Wafermap Prerendering module', () => {
});

it('should have NaN color fill style', () => {
const expectedValues = Array(18).fill(nanDieColor);
const expectedValues = [nanDieColor];
const actualValues = prerenderingModule.diesRenderInfo.map(
dieRenderInfo => dieRenderInfo.fillStyle
);
Expand All @@ -301,10 +299,7 @@ describe('Wafermap Prerendering module', () => {
});
});

// Test disabled as it currently does not have expect statements
// that run to perform any useful validation
// See: https://github.com/ni/nimble/issues/1746
xdescribe('with undefined values', () => {
describe('with undefined values', () => {
const dieDimensions = { width: 10, height: 10 };
const dieLabelsSuffix = '';
const dieLabelsHidden = true;
Expand All @@ -331,8 +326,8 @@ describe('Wafermap Prerendering module', () => {
const dataManagerMock = getDataManagerMock(
dieDimensions,
margin,
defaultHorizontalScale,
defaultVerticalScale
getScaleBand([0, 1], [0, 100]),
getScaleBand([0, 1], [0, 100])
);
prerenderingModule = new Prerendering(
waferMock as WaferMap,
Expand All @@ -342,7 +337,7 @@ describe('Wafermap Prerendering module', () => {
});

it('should have empty color fill style', () => {
const expectedValues = Array(18).fill(emptyDieColor);
const expectedValues = [emptyDieColor];
const actualValues = prerenderingModule.diesRenderInfo.map(
dieRenderInfo => dieRenderInfo.fillStyle
);
Expand Down

0 comments on commit a251205

Please sign in to comment.