Skip to content

Commit

Permalink
chore: use proper terms for test descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
HusamElbashir committed Sep 14, 2019
1 parent ebc9530 commit c3cd40a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/dep.spec.js
Expand Up @@ -10,19 +10,19 @@ describe('Dep', () => {
expect(subs.size).toBe(0)
})

it('does not collect activeComputation as a dependent if not set', () => {
it('does not collect activeComputation as a subscriber if not set', () => {
dep.depend()
expect(subs.size).toBe(0)
})

it('collects activeComputation as a dependent if set', () => {
it('collects activeComputation as a subscriber if set', () => {
Dep.activeComputation = spy
dep.depend()
expect(subs.size).toBe(1)
expect(subs.has(spy)).toBe(true)
})

it('invokes/notifies dependent computations', () => {
it('invokes/notifies subscribed functions', () => {
dep.notify()
expect(spy).toHaveBeenCalled()
})
Expand Down

0 comments on commit c3cd40a

Please sign in to comment.