From 47e709a91adca393f9aaccd7bae635f891d99135 Mon Sep 17 00:00:00 2001 From: miripiruni Date: Tue, 14 Mar 2017 15:58:22 +0300 Subject: [PATCH] Tests: fixed fs mock --- test/techs/bemhtml.test.js | 3 +++ test/techs/bemtree.test.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/test/techs/bemhtml.test.js b/test/techs/bemhtml.test.js index 963d194..47ae56a 100644 --- a/test/techs/bemhtml.test.js +++ b/test/techs/bemhtml.test.js @@ -301,6 +301,9 @@ function build(templates, options) { }); } + var bemhtmlPath = './node_modules/bem-xjst/lib/bemhtml/bundle.js' + scheme[bemhtmlPath] = require('fs').readFileSync(bemhtmlPath, 'utf8'); + mock(scheme); bundle = new MockNode('bundle'); diff --git a/test/techs/bemtree.test.js b/test/techs/bemtree.test.js index b766e90..630ac50 100644 --- a/test/techs/bemtree.test.js +++ b/test/techs/bemtree.test.js @@ -213,6 +213,9 @@ function build(templates, options) { }); } + var bemtreePath = './node_modules/bem-xjst/lib/bemtree/bundle.js' + scheme[bemtreePath] = require('fs').readFileSync(bemtreePath, 'utf8'); + mock(scheme); bundle = new MockNode('bundle');