LearningTypeScript / projects

Hands-on real world projects that will help you exercise your knowledge of TypeScript.
https://learningtypescript.com/projects
245 stars 166 forks source link

✍ Typo: [the-shape-of-types] Check for Greater than or Equal to instead of Greater thank. #254

Closed emily-bown closed 1 year ago

emily-bown commented 1 year ago

Typo Report Checklist

Impacted Project File

Either index.test.ts or the page on the website.

What's Wrong?

The spec for the doBattle method states that if this horror's .getPower() is greater than the opponent's, consumes the opponent. The tests check for this.getPower() >= opponent.getPower(), so the spec should state that.

Additional Info

No response

JoshuaKGoldberg commented 1 year ago

Ah, good spot - thanks @henrybown!