Skip to content

Commit

Permalink
fix naming and test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattchewone committed Jan 28, 2025
1 parent a50f398 commit b1dc976
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/services/token.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export async function extractNodeToken(
value: processedValue.value,
rawValue: processedValue.rawValue,
property: processor.property,
path,
path: path.length > 1 ? path.slice(1) : path,
variables: variableTokens.length > 0 ? variableTokens : undefined,
metadata: {
figmaId: node.id,
Expand Down
2 changes: 1 addition & 1 deletion src/tests/background-processors.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe('Background Processors', () => {

expect(styles).toMatchSnapshot('solid styles');
expect(styles.solid).toBe('background: #00464a;');
expect(styles.alpha).toBe('background: #00464a80;');
expect(styles.alpha).toBe('background: rgba(0, 70, 74, 0.5);');
});

it('should process background solid correctly - sass', async () => {
Expand Down

0 comments on commit b1dc976

Please sign in to comment.