From 61dcc9a42a635de79f23a1f978f0415538d14c06 Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Tue, 13 Dec 2022 15:54:34 -0800 Subject: [PATCH] Skip a few color tests for the embedded host --- js-api-spec/value/color.test.ts | 56 ++++++++++++++++++++------------- 1 file changed, 35 insertions(+), 21 deletions(-) diff --git a/js-api-spec/value/color.test.ts b/js-api-spec/value/color.test.ts index 8b8342eb6..5665de32a 100644 --- a/js-api-spec/value/color.test.ts +++ b/js-api-spec/value/color.test.ts @@ -178,10 +178,13 @@ describe('SassColor', () => { expect(color.lightness).toBe(42); }); - it('has HWB channels', () => { - expect(color.hue).toBe(120); - expect(color.whiteness).toBe(24.360000000000003); - expect(color.blackness).toBe(40.36000000000001); + // sass/embedded-host-node#170 + skipForImpl('sass-embedded', () => { + it('has HWB channels', () => { + expect(color.hue).toBe(120); + expect(color.whiteness).toBe(24.360000000000003); + expect(color.blackness).toBe(40.36000000000001); + }); }); it('has an alpha channel', () => { @@ -215,16 +218,22 @@ describe('SassColor', () => { expect(color.blue).toBe(107); }); - it('has HSL channels', () => { - expect(color.hue).toBe(120); - expect(color.saturation).toBe(16.000000000000007); - expect(color.lightness).toBe(50); + // sass/embedded-host-node#170 + skipForImpl('sass-embedded', () => { + it('has HSL channels', () => { + expect(color.hue).toBe(120); + expect(color.saturation).toBe(16.000000000000007); + expect(color.lightness).toBe(50); + }); }); - it('has HWB channels', () => { - expect(color.hue).toBe(120); - expect(color.whiteness).toBe(42); - expect(color.blackness).toBe(42); + // sass/embedded-host-node#170 + skipForImpl('sass-embedded', () => { + it('has HWB channels', () => { + expect(color.hue).toBe(120); + expect(color.whiteness).toBe(42); + expect(color.blackness).toBe(42); + }); }); it('has an alpha channel', () => { @@ -375,15 +384,20 @@ describe('SassColor', () => { ).toEqualWithHash(hwb(120, 42, 42, 0.5)); }); - it('allows valid values', () => { - expect(color.change({whiteness: 0}).whiteness).toBe(0); - expect(color.change({whiteness: 100}).whiteness).toBe( - 60.141509433962256 - ); - expect(color.change({blackness: 0}).blackness).toBe(0); - expect(color.change({blackness: 100}).blackness).toBe(93.4065934065934); - expect(color.change({alpha: 0}).alpha).toBe(0); - expect(color.change({alpha: 1}).alpha).toBe(1); + // sass/embedded-host-node#170 + skipForImpl('sass-embedded', () => { + it('allows valid values', () => { + expect(color.change({whiteness: 0}).whiteness).toBe(0); + expect(color.change({whiteness: 100}).whiteness).toBe( + 60.141509433962256 + ); + expect(color.change({blackness: 0}).blackness).toBe(0); + expect(color.change({blackness: 100}).blackness).toBe( + 93.4065934065934 + ); + expect(color.change({alpha: 0}).alpha).toBe(0); + expect(color.change({alpha: 1}).alpha).toBe(1); + }); }); it('disallows invalid values', () => {