Skip to content

Commit

Permalink
Rewrote TIR test to be more expressive
Browse files Browse the repository at this point in the history
  • Loading branch information
brabadu committed May 17, 2018
1 parent 17542fe commit c9ff9e6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/tanokInReact.test.js
Expand Up @@ -80,14 +80,15 @@ describe('tanokInReact', () => {
view={TestComponent2}
/>
);
const comp = wrapper.find(TestComponent2).children();
expect(comp.html()).toEqual('<div>3</div>');
const comp = wrapper.find(TestComponent2);
expect(comp.prop('number')).toEqual(3);

// dispatch event
wrapper.find(TestComponent2).prop('tanokStream').send('inc')
wrapper.update();

const comp2 = wrapper.find(TestComponent2).children();
expect(comp2.html()).toEqual('<div>4</div>');
const comp2 = wrapper.find(TestComponent2);
expect(comp2.prop('number')).toEqual(4);

wrapper.unmount();
done();
Expand Down

0 comments on commit c9ff9e6

Please sign in to comment.