Skip to content

Commit

Permalink
Add tests to validate that properties update synchronously
Browse files Browse the repository at this point in the history
Co-authored-by: Keith Cirkel <[email protected]>
  • Loading branch information
koddsson and keithamus committed Oct 24, 2022
1 parent ac03dab commit a874af9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/attrable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ describe('Attrable', () => {
expect(instance).to.have.property('getCount', 0)
expect(instance).to.have.property('setCount', 4)
})

it('updates properties synchronously ', () => {
instance.fooBar = 'goodbye'
expect(instance).to.have.property('fooBar', 'goodbye')
instance.bingBaz = 'universe'
expect(instance).to.have.property('bingBaz', 'universe')
})
}

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

0 comments on commit a874af9

Please sign in to comment.