Skip to content

Instantly share code, notes, and snippets.

@ofirdagan
Last active November 13, 2016 08:43

Revisions

  1. ofirdagan revised this gist Nov 13, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion dummy-component-spec2.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    it('should tapOn', () => {
    const tapSpy = jasmine.createSpy('tap');
    //given
    driver.render({text: 'yoba', onTap: tapSpy});
    driver.render({text: 'hello driver', onTap: tapSpy});
    //when
    driver.tap();
    //then
  2. ofirdagan created this gist Nov 12, 2016.
    9 changes: 9 additions & 0 deletions dummy-component-spec2.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    it('should tapOn', () => {
    const tapSpy = jasmine.createSpy('tap');
    //given
    driver.render({text: 'yoba', onTap: tapSpy});
    //when
    driver.tap();
    //then
    expect(tapSpy).toHaveBeenCalled();
    });