From 34e0aaae16a37f85ecef0e9d5f11ee02f306072d Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Mon, 23 Dec 2024 16:15:30 -0800 Subject: [PATCH] Code review --- pkg/sass-parser/lib/src/statement/declaration.test.ts | 2 +- pkg/sass-parser/lib/src/statement/declaration.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/sass-parser/lib/src/statement/declaration.test.ts b/pkg/sass-parser/lib/src/statement/declaration.test.ts index e7e21feb2..e24d86c01 100644 --- a/pkg/sass-parser/lib/src/statement/declaration.test.ts +++ b/pkg/sass-parser/lib/src/statement/declaration.test.ts @@ -280,7 +280,7 @@ describe('a property declaration', () => { }).toString(), ).toBe('foo:/**/bar {\n baz: bang\n}')); - it('with no value and children', () => + it('with only children', () => expect( new Declaration({ prop: 'foo', diff --git a/pkg/sass-parser/lib/src/statement/declaration.ts b/pkg/sass-parser/lib/src/statement/declaration.ts index 3446d945f..dbf021aa7 100644 --- a/pkg/sass-parser/lib/src/statement/declaration.ts +++ b/pkg/sass-parser/lib/src/statement/declaration.ts @@ -107,7 +107,7 @@ export class Declaration } /** - * The interpolation that represents this declaration's property prop. + * The interpolation that represents this declaration's property name. */ get propInterpolation(): Interpolation { return this._propInterpolation!; @@ -153,7 +153,7 @@ export class Declaration // TODO: Return whether `this.expression` is a nested series of unbracketed // list expressions that ends in the unquoted string `!important` (or an // unquoted string ending in " !important", which can occur if `value` is - // set // manually). + // set manually). throw new Error('Not yet implemented'); } set important(value: boolean) {