Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Td/class syntax #21325

Draft
wants to merge 12 commits into
base: trunk
Choose a base branch
from
Prev Previous commit
Next Next commit
Remove irrelevant tests. Now parse method is a static method of the c…
…lass, which means that it cannot be accessed from an object instance of that class.
  • Loading branch information
FAMarfuaty authored and mhkuu committed Apr 17, 2024
commit 4215e2c63ebb65f4700e412179dd8a7e155b64bf
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,5 @@ describe( "a test for serializing and parsing a Clause class instance", function
isPassive: false,
participles: [],
} );
expect( mockClause.parse( mockClause.serialize() ) ).toEqual( {
_clauseText: "The cat is loved.",
_auxiliaries: [ "is" ],
_isPassive: false,
_participles: [],
} );
} );
} );
10 changes: 0 additions & 10 deletions packages/yoastseo/spec/languageProcessing/values/SentenceSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,5 @@ describe( "Creates a sentence object", function() {
isPassive: true,
sentenceText: "Cats are adored.",
} );
expect( sentence.parse( sentence.serialize() ) ).toEqual( {
_clauses: [
{ _auxiliaries: [ "are" ],
_clauseText: "Cats are adored",
_isPassive: true,
_participles: [],
} ],
_isPassive: true,
_sentenceText: "Cats are adored.",
} );
} );
} );