Skip to content

Commit a874af9

Browse files
koddssonkeithamus
andcommitted
Add tests to validate that properties update synchronously
Co-authored-by: Keith Cirkel <[email protected]>
1 parent ac03dab commit a874af9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/attrable.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@ describe('Attrable', () => {
9797
expect(instance).to.have.property('getCount', 0)
9898
expect(instance).to.have.property('setCount', 4)
9999
})
100+
101+
it('updates properties synchronously ', () => {
102+
instance.fooBar = 'goodbye'
103+
expect(instance).to.have.property('fooBar', 'goodbye')
104+
instance.bingBaz = 'universe'
105+
expect(instance).to.have.property('bingBaz', 'universe')
106+
})
100107
}
101108

102109
describe('types', () => {

0 commit comments

Comments
 (0)