add unit test

This commit is contained in:
Katie Kroell 2026-03-27 14:21:58 -04:00
parent 2d00e6e1c1
commit ce3ff6e6b4

View file

@ -2513,4 +2513,28 @@ describe('Store', () => {
);
});
});
});
describe('updateGlassFees method', () => {
it('updateGlassFees does not add Labor2 fee to feeItems', () => {
// Arrange
const feeData = [
{
partNumber: 'LABOR2',
partType: 'LABOR FEE'
}
];
// Act
store.updateGlassFees(feeData);
// Assert
expect(store.order.lineItems.feeItems).not.toEqual(
expect.arrayContaining([
expect.objectContaining({
partNumber: 'LABOR2',
partType: 'LABOR FEE'
})
])
);
});
});
});