06 - Use Triple Equals Assert Strict Equality - Quality Assurance with Chai - freeCodeCamp Tutorial
Channel: Ganesh H
Date: 2020-07-23

If we want to assert equality without type conversion, we can use the strict equality operator (===) to compare values. Chai's assert methods have a strictEqual() and notStrictEqual() method to help us with this.

Link to Challenge : https://www.freecodecamp.org/learn/quality-assurance/quality-assurance-and-testing-with-chai/use-the-triple-equals-to-assert-strict-equality
Written Guide: https://www.notion.so/ganeshh123/Use-the-Triple-Equals-to-Assert-Strict-Equality-f55bcc87a54a4538b67e13a8dfb840b7

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 - Strict Equality (===)
Strict equality compares two values for equality. Neither value is implicitly converted to some other value before being compared. If the values have different types, the values are considered unequal. If the values have the same type, are not numbers, and have the same value, they're considered equal.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness

0:52 - assert.strictEqual()
Asserts strict equality (===) of actual and expected.
https://www.chaijs.com/api/assert/#method_strictequal

04:12 - assert.notStrictEqual()
Asserts strict inequality (!==) of actual and expected.
https://www.chaijs.com/api/assert/#method_notstrictequal

05:35 - 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!