Skip to content

Commit abb1cac

Browse files
committed
Fix tests ;)
1 parent 6fe3a30 commit abb1cac

13 files changed

+22
-25
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
**/*.deps.js
2-
**/*.bemjson.js
32
libs/**
43
*bundles/**
54
output/**

blocks/common/articles/articles.bemtree.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
var vm = require('vm');
2-
31
block('articles').content()(function() {
42
var data = this.data,
53
page = data.page;
64

7-
return vm.runInNewContext(page.content).map(function(article) {
5+
return page.content.map(function(article) {
86
return [
97
{
108
elem: 'title',

content/community/community.en.bemjson.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[
1+
module.exports = [
22
{
33
block: 'index-title',
44
content: [

content/community/community.ru.bemjson.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[
1+
module.exports = [
22
{
33
block: 'index-title',
44
content: [

content/index/index.en.bemjson.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[
1+
module.exports = [
22
{
33
block: 'index-title',
44
content: [

content/index/index.ru.bemjson.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[
1+
module.exports = [
22
{
33
block: 'index-title',
44
content: [

content/methodology/articles.en.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[
1+
module.exports = [
22
{
33
title: 'Learning to Love BEM',
44
author: 'Johan Ronsse',

content/methodology/articles.ru.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[
1+
module.exports = [
22
{
33
title: 'Учимся любить БЭМ',
44
author: 'Johan Ronsse',

content/methodology/methodology.en.bemjson.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[{
1+
module.exports = [{
22
block: 'promo-header',
33
mods: { site: 'methodology' },
44
content: [
@@ -485,31 +485,31 @@
485485
elem: 'company',
486486
content: 'Yandex',
487487
url: 'https://tech.yandex.com/bem/',
488-
src: 'promo-companies__yandex.en.svg',
488+
src: 'promo-companies__yandex.en.svg'
489489
},
490490
{
491491
elem: 'company',
492492
content: 'Google',
493493
url: 'https://github.com/google/material-design-lite/wiki/Understanding-BEM',
494-
src: 'promo-companies__google.svg',
494+
src: 'promo-companies__google.svg'
495495
},
496496
{
497497
elem: 'company',
498498
content: 'BBC',
499499
url: 'http://www.integralist.co.uk/posts/bem.html',
500-
src: 'promo-companies__bbc.svg',
500+
src: 'promo-companies__bbc.svg'
501501
},
502502
{
503503
elem: 'company',
504504
content: 'Alpha-Bank',
505505
url: 'https://github.com/alfa-bank-dev/ui',
506-
src: 'promo-companies__alpha-bank.svg',
506+
src: 'promo-companies__alpha-bank.svg'
507507
},
508508
{
509509
elem: 'company',
510510
content: 'BuzzFeed',
511511
url: 'http://www.buzzfeed.com/',
512-
src: 'promo-companies__buzzfeed.svg',
512+
src: 'promo-companies__buzzfeed.svg'
513513
}
514514
]
515515
}

content/methodology/methodology.ru.bemjson.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[{
1+
module.exports = [{
22
block: 'promo-header',
33
mods: { site: 'methodology' },
44
content: [
@@ -483,31 +483,31 @@
483483
elem: 'company',
484484
content: 'Яндекс',
485485
url: 'https://tech.yandex.ru/bem/',
486-
src: 'promo-companies__yandex.ru.svg',
486+
src: 'promo-companies__yandex.ru.svg'
487487
},
488488
{
489489
elem: 'company',
490490
content: 'Google',
491491
url: 'https://github.com/google/material-design-lite/wiki/Understanding-BEM',
492-
src: 'promo-companies__google.svg',
492+
src: 'promo-companies__google.svg'
493493
},
494494
{
495495
elem: 'company',
496496
content: 'BBC',
497497
url: 'http://www.integralist.co.uk/posts/bem.html',
498-
src: 'promo-companies__bbc.svg',
498+
src: 'promo-companies__bbc.svg'
499499
},
500500
{
501501
elem: 'company',
502502
content: 'Aplha-Bank',
503503
url: 'https://github.com/alfa-bank-dev/ui',
504-
src: 'promo-companies__alpha-bank.svg',
504+
src: 'promo-companies__alpha-bank.svg'
505505
},
506506
{
507507
elem: 'company',
508508
content: 'BuzzFeed',
509509
url: 'http://www.buzzfeed.com/',
510-
src: 'promo-companies__buzzfeed.svg',
510+
src: 'promo-companies__buzzfeed.svg'
511511
}
512512
]
513513
}

content/platform/platform.en.bemjson.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[{
1+
module.exports = [{
22
block: 'promo-header',
33
mods: { site: 'methodology' },
44
content: [

content/platform/platform.ru.bemjson.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[{
1+
module.exports = [{
22
block: 'promo-header',
33
mods: { site: 'methodology' },
44
content: [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"eslint": "^2.4.0",
3232
"eslint-config-pedant": "^0.1.1",
3333
"eslint-plugin-bem-xjst": "^1.0.1",
34-
"gorshochek": "bem-site/gorshochek#issues/53-2",
34+
"gorshochek": "bem-site/gorshochek#v2.3.0",
3535
"gulp": "gulpjs/gulp#4.0",
3636
"gulp-batch": "^1.0.5",
3737
"gulp-csscomb": "^3.0.6",

0 commit comments

Comments
 (0)