Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
miripiruni committed Dec 12, 2016
1 parent 4e1b5ea commit 76c0962
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/bemcontext-position-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ describe('BEMContext this.position', function() {
block('a').replace()({ block: 'b' });
block('b')
.match(function(self) { return self.isFirst(); })
.addMods()({ first: 'yes' });
.def()(function() { this.mods.first = 'yes'; return applyNext(); });

block('b')
.match(function(self) { return self.isLast(); })
.addMods()({ last: 'yes' });
.def()(function() { this.mods.last = 'yes'; return applyNext(); });
},
[ { block: 'a' }, { block: 'a' }, { block: 'a' } ],
'<div class="b b_first_yes"></div><div class="b"></div>' +
Expand All @@ -139,10 +139,10 @@ describe('BEMContext this.position', function() {

block('b')(
match(function(self) { return self.isFirst(); })
.addMods()({ first: 'yes' }),
.def()(function() { this.mods.first = 'yes'; return applyNext(); }),

match(function(self) { return self.isLast(); })
.addMods()({ last: 'yes' }),
.def()(function() { this.mods.last = 'yes'; return applyNext(); }),

cls()(function() {
return 'p_' + this.position;
Expand All @@ -163,10 +163,10 @@ describe('BEMContext this.position', function() {

block('b')(
match(function(self) { return self.isFirst(); })
.addMods()({ first: 'yes' }),
.def()(function() { this.mods.first = 'yes'; return applyNext(); }),

match(function(self) { return self.isLast(); })
.addMods()({ last: 'yes' }),
.def()(function() { this.mods.last = 'yes'; return applyNext(); }),

cls()(function() {
return 'p_' + this.position;
Expand Down

0 comments on commit 76c0962

Please sign in to comment.