Skip to content

Commit

Permalink
Fix broken assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
bergie committed May 29, 2017
1 parent 9c5932f commit 61d143d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions spec/Component.coffee
Expand Up @@ -1600,7 +1600,7 @@ describe 'Component', ->
chai.expect(ip.data).to.equal 'delay'
when 2
chai.expect(ip.type).to.equal 'data'
chai.expect(ip.data).to.be.an.error
chai.expect(ip.data).to.be.an 'error'
when 3
chai.expect(ip.type).to.equal 'closeBracket'
chai.expect(ip.data).to.equal 'delay'
Expand Down Expand Up @@ -1937,7 +1937,7 @@ describe 'Component', ->
done new Error 'Unexpected baz'
sout2.once 'ip', (ip) ->
chai.expect(ip).to.be.an 'object'
chai.expect(ip.data).to.be.an.error
chai.expect(ip.data).to.be.an 'error'
chai.expect(ip.data.message).to.contain 'Bar'
done()

Expand Down
2 changes: 1 addition & 1 deletion spec/ComponentLoader.coffee
Expand Up @@ -44,7 +44,7 @@ describe 'ComponentLoader with no external packages installed', ->
it 'should not initially be processing', ->
chai.expect(l.processing).to.be.false
it 'should not have any packages in the checked list', ->
chai.expect(l.checked).to.be.empty
chai.expect(l.checked).to.not.exist

describe 'normalizing names', ->
it 'should return simple module names as-is', ->
Expand Down
2 changes: 1 addition & 1 deletion spec/Helpers.coffee
Expand Up @@ -1937,7 +1937,7 @@ describe 'Component traits', ->
return actual.push ip.data
if ip.type is 'data'
data = ip.data
chai.expect(data).to.be.an.error
chai.expect(data).to.be.an 'error'
chai.expect(data.kind).to.equal 'form_error'
errCount++
if ip.type is 'closeBracket'
Expand Down
2 changes: 1 addition & 1 deletion spec/Network.coffee
Expand Up @@ -87,7 +87,7 @@ describe 'NoFlo Network', ->
foo: 'Bar'
it 'should have transmitted the node metadata to the process', ->
chai.expect(n.processes.Graph.component.metadata).to.exist
chai.expect(n.processes.Graph.component.metadata).to.be.an.object
chai.expect(n.processes.Graph.component.metadata).to.be.an 'object'
chai.expect(n.processes.Graph.component.metadata).to.eql g.getNode('Graph').metadata
it 'should not contain the node after removal', (done) ->
g.once 'removeNode', ->
Expand Down

0 comments on commit 61d143d

Please sign in to comment.