08 - Compare the Properties of Two Elements - Quality Assurance with Chai - freeCodeCamp Tutorial
Ganesh H
Chai has several assert methods to compare values. We can check if a value is above another value, or at most another value, using the isAbove() andf isAtMost() methods. We provide an input value to these methods to test, as well as a benchmark value to test against.
Link to Challenge : https://www.freecodecamp.org/learn/quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements Written Guide: https://www.notion.so/ganeshh123/Compare-the-Properties-of-Two-Elements-062d33532cc34a2a8eb2026e060d0830
Full Playlist for this course : https://www.youtube.com/playlist?list=PLhGp6N0DI_1SVteCORbgwlxJkAbcTiZyj All Writen Guides for this course : https://www.notion.so/ganeshh123/54ecbf7833414db885eec37f580599b4 All My Tutorials can be found at : https://www.notion.so/Tutorials-Ganesh-H-293ea420d34a464f9a1907e0405b5f26
0:00 - Concepts: 0:08 - assert.isAbove() Asserts valueToCheck is strictly greater than valueToBeAbove. https://www.chaijs.com/api/assert/#method_isabove
01:26 - assert.isAtMost() Asserts valueToCheck is less than or equal to valueToBeAtMost. https://www.chaijs.com/api/assert/#method_isatmost
02:52 - Challenge Solution -————————————————————————————————————- Chai is an assertion library, similar to Node's built-in assert. It makes testing much easier by giving you lots of assertions you can run against your code.
freeCodeCamp (also referred to as “Free Code Camp”) is a non-profit organization that consists of an interactive learning web platform, an online community forum, chat rooms, online publications and local organizations that intend to make learning web development accessible to anyone. Beginning with tutorials that introduce students to HTML, CSS and JavaScript, students progress to project assignments that they complete either alone or in pairs. Upon completion of all project tasks, students are partnered with other nonprofits to build web applications, giving the students practical development experience.
Thanks for Watching! ... https://www.youtube.com/watch?v=10B7iPTotbY
22829510 Bytes