Skip to content

Commit e81e48c

Browse files
author
Dave Conway-Jones
committed
Fix html parse node test
1 parent 8eebb6e commit e81e48c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/nodes/core/parsers/70-HTML_spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe('html node', function() {
4848
});
4949
});
5050

51-
it('should retrieve header contents as default', function(done) {
51+
it('should retrieve header contents if asked to by msg.select', function(done) {
5252
fs.readFile(file, 'utf8', function(err, data) {
5353
var flow = [{id:"n1",type:"html",wires:[["n2"]],func:"return msg;"},
5454
{id:"n2", type:"helper"}];
@@ -61,7 +61,7 @@ describe('html node', function() {
6161
should.equal(msg.payload, 'This is a test page for node 70-HTML');
6262
done();
6363
});
64-
n1.receive({payload:data,topic: "bar"});
64+
n1.receive({payload:data,topic:"bar",select:"h1"});
6565
});
6666
});
6767
});

0 commit comments

Comments
 (0)