Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Commit

Permalink
Replace stub with spy
Browse files Browse the repository at this point in the history
In this case, only a simple spy is needed.
  • Loading branch information
hpurmann committed Aug 8, 2016
1 parent 8033a65 commit 1f80880
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/selection-unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ describe('selection', () => {
const item = new Item()
const selection = new Selection([item])
selection.replace(item)
const changeListener = sinon.stub()
const changeListener = sinon.spy()
selection.on('change', changeListener)

selection.replace(item)
Expand Down Expand Up @@ -313,7 +313,7 @@ describe('selection', () => {
selection.toggle(itemList[1])
selection.toggle(itemList[3])

const changeListener = sinon.stub()
const changeListener = sinon.spy()
selection.on('change', changeListener)

selection.remove([itemList[4], itemList[2]])
Expand Down Expand Up @@ -380,7 +380,7 @@ describe('selection', () => {
selection.replace(itemList[1])
selection.rangeTo(itemList[3])

const changeListener = sinon.stub()
const changeListener = sinon.spy()
selection.on('change', changeListener)

selection.rangeTo(itemList[3])
Expand Down

0 comments on commit 1f80880

Please sign in to comment.