Skip to content

Commit

Permalink
it.skip -> xit for Jasmine compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Aug 2, 2023
1 parent 6046861 commit acaa8b3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions js-api-spec/value/color.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ describe('SassColor', () => {
});

// TODO(#1828): Update these expectations
it.skip('disallows invalid values', () => {
xit('disallows invalid values', () => {
expect(() => rgb(-1, 0, 0, 0)).toThrow();
expect(() => rgb(0, -1, 0, 0)).toThrow();
expect(() => rgb(0, 0, -1, 0)).toThrow();
Expand All @@ -83,7 +83,7 @@ describe('SassColor', () => {
});

// TODO(#1828): Update these expectations
it.skip('rounds channels to the nearest integer', () => {
xit('rounds channels to the nearest integer', () => {
expect(rgb(0.1, 50.4, 90.3)).toEqualWithHash(rgb(0, 50, 90));
expect(rgb(-0.1, 50.5, 90.7)).toEqualWithHash(rgb(0, 51, 91));
});
Expand Down Expand Up @@ -193,7 +193,7 @@ describe('SassColor', () => {
});

// TODO(#1828): Update these expectations
it.skip('equals the same color', () => {
xit('equals the same color', () => {
expect(color).toEqualWithHash(rgb(62, 152, 62));
expect(color).toEqualWithHash(hsl(120, 42, 42));
expect(color).toEqualWithHash(
Expand Down Expand Up @@ -242,7 +242,7 @@ describe('SassColor', () => {
});

// TODO(#1828): Update these expectations
it.skip('equals the same color', () => {
xit('equals the same color', () => {
expect(color).toEqualWithHash(rgb(107, 148, 107));
expect(color).toEqualWithHash(hsl(120, 16.078431372549026, 50));
expect(color).toEqualWithHash(
Expand Down Expand Up @@ -287,7 +287,7 @@ describe('SassColor', () => {
});

// TODO(#1828): Update these expectations
it.skip('disallows invalid values', () => {
xit('disallows invalid values', () => {
expect(() => color.change({red: -1})).toThrow();
expect(() => color.change({red: 256})).toThrow();
expect(() => color.change({green: -1})).toThrow();
Expand All @@ -299,7 +299,7 @@ describe('SassColor', () => {
});

// TODO(#1828): Update these expectations
it.skip('rounds channels to the nearest integer', () => {
xit('rounds channels to the nearest integer', () => {
expect(
color.change({red: 0.1, green: 50.4, blue: 90.3})
).toEqualWithHash(rgb(0, 50, 90));
Expand Down

0 comments on commit acaa8b3

Please sign in to comment.