From 22094a244e9e5c88e60769c560201c9906e038a3 Mon Sep 17 00:00:00 2001 From: Vasiliy Loginevskiy Date: Wed, 22 Feb 2017 10:56:59 +0300 Subject: [PATCH] Show error when require tech in ctx of _mod --- test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test.js b/test.js index f0365fc..536bd87 100644 --- a/test.js +++ b/test.js @@ -476,5 +476,11 @@ describe('tech', () => { { block : 'button2', elem : 'text', tech : 'css' } ]); }); + + it('should extract tech for mod in ctx', () => { + expect(p('t:css', { block : 'button2', mod : { name : 'type' } })).to.eql([ + { block : 'button2', mod : { name : 'type' }, tech : 'css' } + ]); + }); }); });