Skip to content

Commit efb1eb6

Browse files
committed
Rename variable in tests
1 parent 2941bb5 commit efb1eb6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
var fs = require('fs');
22
var test = require('tape');
33
var Transform = require('stream').Transform;
4-
var jsonmlify = require('../');
4+
var parse = require('../');
55

66
function verify(markup, expected, t) {
77
var result;
8-
jsonmlify()
8+
parse()
99
.on('data', function(data) {
1010
result = data;
1111
})
@@ -17,13 +17,13 @@ function verify(markup, expected, t) {
1717
}
1818

1919
test('should return a transform stream', function(t) {
20-
t.ok(jsonmlify() instanceof Transform);
21-
t.ok(new jsonmlify() instanceof Transform);
20+
t.ok(parse() instanceof Transform);
21+
t.ok(new parse() instanceof Transform);
2222
t.end();
2323
});
2424

2525
test('should not return anything in \'callback mode\'', function(t) {
26-
t.equal(jsonmlify('foo', function() {}), undefined);
26+
t.equal(parse('foo', function() {}), undefined);
2727
t.end();
2828
});
2929

@@ -58,7 +58,7 @@ test('should parse comments', function(t) {
5858
});
5959

6060
test('should also offer a node-style callback API', function(t) {
61-
jsonmlify('<div></div>', function(err, result) {
61+
parse('<div></div>', function(err, result) {
6262
t.notOk(err);
6363
t.deepEqual(result, [['div']]);
6464
t.end();
@@ -67,7 +67,7 @@ test('should also offer a node-style callback API', function(t) {
6767

6868
test('should report errors', function(t) {
6969
var errorCount = 0;
70-
var stream = jsonmlify();
70+
var stream = parse();
7171
stream.on('error', function(err) {
7272
errorCount++;
7373
t.ok(err);

0 commit comments

Comments
 (0)