Skip to content

Commit

Permalink
[colorManipulator] fix wrong tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosvega91 committed Apr 27, 2020
1 parent 8dd347a commit 7f97d98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/material-ui/src/styles/colorManipulator.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,19 @@ describe('utils/colorManipulator', () => {
it('converts an rgba color string to an object with `type` and `value` keys', () => {
const { type, values } = decomposeColor('rgba(255, 255, 255, 0.5)');
expect(type).to.equal(type, 'rgba');
expect(values).to.deep.equal(values, [255, 255, 255, 0.5]);
expect(values).to.deep.equal([255, 255, 255, 0.5]);
});

it('converts an hsl color string to an object with `type` and `value` keys', () => {
const { type, values } = decomposeColor('hsl(100, 50%, 25%)');
expect(type).to.equal(type, 'hsl');
expect(values).to.deep.equal(values, [100, 50, 25]);
expect(values).to.deep.equal([100, 50, 25]);
});

it('converts an hsla color string to an object with `type` and `value` keys', () => {
const { type, values } = decomposeColor('hsla(100, 50%, 25%, 0.5)');
expect(type).to.equal(type, 'hsla');
expect(values).to.deep.equal(values, [100, 50, 25, 0.5]);
expect(values).to.deep.equal([100, 50, 25, 0.5]);
});

it('idempotent', () => {
Expand Down

0 comments on commit 7f97d98

Please sign in to comment.