Skip to content

Commit

Permalink
Code review
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Feb 1, 2025
1 parent 879193b commit 4cb37d5
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions pkg/sass-parser/lib/src/expression/color.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,27 +133,24 @@ describe('a color expression', () => {
).toThrow());
});

describe('assigned new', () => {
beforeEach(() => void (node = utils.parseExpression('#123')));

it('value', () => {
node.value = new SassColor({
it('assigned new value', () => {
const node = utils.parseExpression('#123') as SassColor;
node.value = new SassColor({
space: 'rgb',
red: 10,
green: 20,
blue: 30,
alpha: 0.4,
});
expect(node.value).toEqual(
new SassColor({
space: 'rgb',
red: 10,
green: 20,
blue: 30,
alpha: 0.4,
});
expect(node.value).toEqual(
new SassColor({
space: 'rgb',
red: 10,
green: 20,
blue: 30,
alpha: 0.4,
}),
);
});
}),
);
});

describe('stringifies', () => {
Expand Down

0 comments on commit 4cb37d5

Please sign in to comment.