From 1dafbb0a2046579343a186f68953f42efae9dbf5 Mon Sep 17 00:00:00 2001 From: "Carlos (Goodwine)" <2022649+Goodwine@users.noreply.github.com> Date: Wed, 29 Jan 2025 16:41:38 -0800 Subject: [PATCH] Test that sassTrue and sassFalse are instances of SassBoolean (#2045) --- js-api-spec/value/boolean.test.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/js-api-spec/value/boolean.test.ts b/js-api-spec/value/boolean.test.ts index 2d2dd98c2..520afab23 100644 --- a/js-api-spec/value/boolean.test.ts +++ b/js-api-spec/value/boolean.test.ts @@ -2,7 +2,7 @@ // MIT-style license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. -import {Value, sassTrue, sassFalse} from 'sass'; +import {Value, sassTrue, sassFalse, SassBoolean} from 'sass'; describe('Sass boolean', () => { describe('sassTrue', () => { @@ -24,6 +24,10 @@ describe('Sass boolean', () => { expect(value.assertBoolean()).toBe(sassTrue); }); + it('is a SassBoolean instance', () => { + expect(value).toBeInstanceOf(SassBoolean); + }); + it("isn't any other type", () => { expect(value.assertCalculation).toThrow(); expect(value.assertColor).toThrow(); @@ -55,6 +59,10 @@ describe('Sass boolean', () => { expect(value.assertBoolean()).toBe(sassFalse); }); + it('is a SassBoolean instance', () => { + expect(value).toBeInstanceOf(SassBoolean); + }); + it("isn't any other type", () => { expect(value.assertCalculation).toThrow(); expect(value.assertColor).toThrow();