Skip to content

Commit

Permalink
Updated old recipe and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bheston committed Jun 9, 2021
1 parent 91f6294 commit a377ea6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/web-components/src/color/neutral-fill-card.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import { neutralFillCard as neutralFillCardNew } from "../color-vNext/recipes/ne
describe('neutralFillCard', (): void => {
it('should operate on design system defaults', (): void => {
expect(neutralFillCard({} as DesignSystem)).to.equal(
DesignSystemDefaults.neutralPalette[DesignSystemDefaults.neutralFillCardDelta],
DesignSystemDefaults.neutralPalette[0],
);
});
it('should get darker when the index of the backgroundColor is lower than the offset index', (): void => {
it('should stay white when the index of the backgroundColor is lower than the offset index', (): void => {
for (let i: number = 0; i < DesignSystemDefaults.neutralFillCardDelta; i++) {
expect(
DesignSystemDefaults.neutralPalette.indexOf(
Expand All @@ -23,7 +23,7 @@ describe('neutralFillCard', (): void => {
}),
),
),
).to.equal(DesignSystemDefaults.neutralFillCardDelta + i);
).to.equal(0);
}
});
it('should return the color at three steps lower than the background color', (): void => {
Expand Down

0 comments on commit a377ea6

Please sign in to comment.