diff --git a/test/to-string.test.js b/test/to-string.test.js index 602ce33..241d22b 100644 --- a/test/to-string.test.js +++ b/test/to-string.test.js @@ -26,7 +26,7 @@ test('should use `naming.stringify()` for elem', t => { }); test('should use `naming.stringify()` for block modifier', t => { - const entity = new BemEntityName({ block: 'block', modName: 'mod', modVal: 'val' }); + const entity = new BemEntityName({ block: 'block', mod: { name: 'mod', val: 'val' } }); entity.toString(); @@ -34,7 +34,7 @@ test('should use `naming.stringify()` for block modifier', t => { }); test('should use naming.stringify() for element modifier', t => { - const entity = new BemEntityName({ block: 'block', elem: 'elem', modName: 'mod', modVal: 'val' }); + const entity = new BemEntityName({ block: 'block', elem: 'elem', mod: { name: 'mod', val: 'val' } }); entity.toString(); diff --git a/test/type.test.js b/test/type.test.js index 19e357f..6a5b40d 100644 --- a/test/type.test.js +++ b/test/type.test.js @@ -9,7 +9,7 @@ test('should determine block', t => { }); test('should determine modifier of block', t => { - const entityName = new BemEntityName({ block: 'block', mod: 'mod' }); + const entityName = new BemEntityName({ block: 'block', mod: { name: 'mod' } }); t.is(entityName.type, 'blockMod'); }); @@ -21,7 +21,7 @@ test('should determine elem', t => { }); test('should determine modifier of element', t => { - const entityName = new BemEntityName({ block: 'block', elem: 'elem', mod: 'mod' }); + const entityName = new BemEntityName({ block: 'block', elem: 'elem', mod: { name: 'mod' } }); t.is(entityName.type, 'elemMod'); });