UNPKG

yoastseo-dep

Version:

Yoast clientside page analysis

23 lines (16 loc) 941 B
import CzechClause from "../../../../../src/languageProcessing/languages/cs/values/Clause"; describe( "A test for checking the Czech clause", function() { it( "checks the properties of the Czech clause object with an auxiliary and a participle", function() { const mockClause = new CzechClause( "již bylo napsáno.", [ "bylo" ] ); expect( mockClause.getParticiples() ).toEqual( [ "napsáno" ] ); expect( mockClause.isPassive() ).toBe( true ); } ); it( "checks the properties of the Czech clause object with an auxiliary but without a participle", function() { const mockClause = new CzechClause( "Kočky jsou krásné.", [ "jsou" ] ); expect( mockClause.isPassive() ).toBe( false ); } ); it( "checks the properties of the Czech clause object without an auxiliary and a participle", function() { const mockClause = new CzechClause( "Dorazil doktor.", [] ); expect( mockClause.isPassive() ).toBe( false ); } ); } );