Skip to content

Commit

Permalink
fix: unit tests for new prop syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
dominiksta committed Nov 5, 2023
1 parent b441b5c commit b1f9b0b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/core/cypress/component/attribute-reflection.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ describe('attribute reflection', () => {
static useShadow = false;

props = {
attrBool: new rx.Prop<boolean>({ reflect: true, converter: Boolean }),
attrString: new rx.Prop<string>({ reflect: true }),
attrNum: new rx.Prop<number>({ reflect: true, converter: Number }),
attrBool: new rx.PropWithDefault<boolean>(
false, { reflect: true, converter: Boolean }
),
attrString: new rx.PropWithDefault<string>('hi', { reflect: true }),
attrNum: new rx.PropWithDefault<number>(
5, { reflect: true, converter: Number }
),
}
render = () => [];
};
Expand Down

0 comments on commit b1f9b0b

Please sign in to comment.