Skip to content

Commit 01268d2

Browse files
committed
fix failing tests
1 parent 44fd41b commit 01268d2

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

test/find_matching_blocks.spec.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('findMatchingBlocks', function(){
66
beforeEach(function(){
77
tokenize = function(tokens){
88
return tokens.map(function(token){
9-
return createToken(token, []);
9+
return createToken(token, [], []);
1010
});
1111
};
1212
});
@@ -25,20 +25,20 @@ describe('findMatchingBlocks', function(){
2525
res = cut(tokenize(['a', 'apple', 'has', 'a', 'worm']));
2626
});
2727

28-
it('should find "a[]" twice', function(){
29-
expect(res['a[]'].length).to.equal(2);
28+
it('should find "a[][]" twice', function(){
29+
expect(res['a[][]'].length).to.equal(2);
3030
});
3131

3232
it('should find "a" at 0', function(){
33-
expect(res['a[]'][0]).to.equal(0);
33+
expect(res['a[][]'][0]).to.equal(0);
3434
});
3535

3636
it('should find "a" at 3', function(){
37-
expect(res['a[]'][1]).to.equal(3);
37+
expect(res['a[][]'][1]).to.equal(3);
3838
});
3939

4040
it('should find "has" at 2', function(){
41-
expect(res['has[]'][0]).to.equal(2);
41+
expect(res['has[][]'][0]).to.equal(2);
4242
});
4343
});
4444
});

test/html_to_tokens.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ describe('htmlToTokens', function(){
99

1010
tokenize = function(tokens){
1111
return tokens.map(function(token){
12-
return createToken(token, []);
12+
return createToken(token, [], []);
1313
});
1414
};
1515
});

test/render_operations.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('renderOperations', function(){
88

99
tokenize = function(tokens){
1010
return tokens.map(function(token){
11-
return createToken(token, []);
11+
return createToken(token, [], []);
1212
});
1313
};
1414

0 commit comments

Comments
 (0)