Skip to content

Commit

Permalink
chore: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
Caele committed Dec 18, 2022
1 parent 355f5f0 commit 08423b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apis/nucleus/src/utils/__tests__/background-props.test.js
Expand Up @@ -18,7 +18,7 @@ describe('Background property resolver', () => {
bgCompLayout = {
key: 'general',
bgColor: {
useColorExpression: true,
useExpression: true,
colorExpression: '#ff0000',
color: { index: -1, color: 'aqua' },
},
Expand All @@ -40,7 +40,7 @@ describe('Background property resolver', () => {
expect(color).toBe('rgb(255, 0, 0)');
});
test('should resolve background color by picker', () => {
bgCompLayout.bgColor.useColorExpression = false;
bgCompLayout.bgColor.useExpression = false;
const color = resolveBgColor(bgCompLayout, t);
expect(color).toBe('aqua');
});
Expand Down

0 comments on commit 08423b5

Please sign in to comment.