Skip to content

Commit

Permalink
feat: add warning when value and default are both given in one pr…
Browse files Browse the repository at this point in the history
…operty (#66)
  • Loading branch information
LastLeaf committed Sep 8, 2023
1 parent 510f88d commit 1c42811
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion glass-easel/tests/core/behavior.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ describe('chaining-form interface', () => {
.define()
.property('propA', {
type: Number,
value: 123,
default: () => 456,
})
.observer('propA', () => {
Expand Down
2 changes: 0 additions & 2 deletions glass-easel/tests/legacy/component.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,14 +235,12 @@ describe('Component', function () {
properties: {
a: {
type: String,
value: 'abc',
default: function () {
return 'def'
},
},
b: {
type: Number,
value: 123,
default: function () {
return 456
},
Expand Down

0 comments on commit 1c42811

Please sign in to comment.