diff --git a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.english.md b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.english.md index 91d00357dd..c776dd67f9 100644 --- a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.english.md +++ b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.english.md @@ -7,12 +7,12 @@ challengeType: 2 ## Description
As a reminder, this project is being built upon the following starter project on Glitch, or cloned from GitHub. -.deepEqual(), .notDeepEqual(). -.deepEqual() asserts that two object are deep equal. +deepEqual() asserts that two object are deep equal.
## Instructions
+Use assert.deepEqual() or assert.notDeepEqual() to make the tests pass.
diff --git a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.english.md b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.english.md index 4d8e07b108..221c225573 100644 --- a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.english.md +++ b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.english.md @@ -7,12 +7,12 @@ challengeType: 2 ## Description
As a reminder, this project is being built upon the following starter project on Glitch, or cloned from GitHub. -.isAbove() => a > b , .isAtMost() => a <= b.
## Instructions
+Use assert.isAbove()(i.e. greater) or assert.isAtMost() (i.e. less than or equal) to make the tests pass.
## Tests diff --git a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.english.md b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.english.md index f353377a01..084e11c5f7 100644 --- a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.english.md +++ b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.english.md @@ -8,13 +8,19 @@ challengeType: 2
As a reminder, this project is being built upon the following starter project on Glitch, or cloned from GitHub. +isTrue() will test for the boolean value true and isNotTrue() will pass when given anything but the boolean value of true. +
+assert.isTrue(true, 'this will pass with the boolean value true'); +assert.isTrue('true', 'this will NOT pass with the string value 'true'); +assert.isTrue(1, 'this will NOT pass with the number value 1'); +
+ +isFalse() and isNotFalse() also exist and behave similary to their true counterparts except they look for the boolean value of false.
## Instructions
Use assert.isTrue() or assert.isNotTrue() to make the tests pass. -.isTrue(true) and .isNotTrue(everything else) will pass. -.isFalse() and .isNotFalse() also exist.
## Tests diff --git a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.english.md b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.english.md index a8d215abf5..a89a3a283f 100644 --- a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.english.md +++ b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.english.md @@ -7,12 +7,15 @@ challengeType: 2 ## Description
As a reminder, this project is being built upon the following starter project on Glitch, or cloned from GitHub. -#include (or #notInclude) works for strings too!! -It asserts that the actual string contains the expected substring. + +include() and notInclude() work for strings too! +include() asserts that the actual string contains the expected substring.
## Instructions
+Use assert.include() or assert.notInclude() to make the tests pass. +
diff --git a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.english.md b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.english.md index e6a592d5ee..838871eaeb 100644 --- a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.english.md +++ b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.english.md @@ -8,13 +8,13 @@ challengeType: 2
As a reminder, this project is being built upon the following starter project on Glitch, or cloned from GitHub. +.approximately(actual, expected, delta, [message]) +Asserts that the actual is equal expected, to within a +/- delta range.
## Instructions
-.approximately -.approximately(actual, expected, range, [message]) -actual = expected +/- range +Use assert.approximately() to make the tests pass. Choose the minimum range (3rd parameter) to make the test always pass. It should be less than 1.
diff --git a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.english.md b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.english.md index bf5b2b5599..a03e6aa2b0 100644 --- a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.english.md +++ b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.english.md @@ -7,12 +7,12 @@ challengeType: 2 ## Description
As a reminder, this project is being built upon the following starter project on Glitch, or cloned from GitHub. -#isString or #isNotString asserts that the actual value is a string. +isString or isNotString asserts that the actual value is a string.
## Instructions
- +Use assert.isString() or assert.isNotString() to make the tests pass.
## Tests diff --git a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.english.md b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.english.md index 4413e0799f..4ad1aee376 100644 --- a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.english.md +++ b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.english.md @@ -11,7 +11,7 @@ As a reminder, this project is being built upon the following starter project on ## Instructions
- +Use assert.isArray() or assert.isNotArray() to make the tests pass.
## Tests diff --git a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.english.md b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.english.md index baf43d3bda..57f23bdcd0 100644 --- a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.english.md +++ b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.english.md @@ -13,7 +13,7 @@ As a reminder, this project is being built upon the following starter project on ## Instructions
-Use #typeOf or #notTypeOf where it is appropriate. +Use assert.typeOf() or assert.notTypeOf() to make the tests pass.
## Tests diff --git a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.english.md b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.english.md index 215e99f3e0..a0990a09ad 100644 --- a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.english.md +++ b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.english.md @@ -11,7 +11,7 @@ As a reminder, this project is being built upon the following starter project on ## Instructions
- +Use assert.include() or assert.notInclude() to make the tests pass.
## Tests diff --git a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.english.md b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.english.md index 24cc55689e..275905c2a7 100644 --- a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.english.md +++ b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.english.md @@ -13,7 +13,7 @@ As a reminder, this project is being built upon the following starter project on ## Instructions
-Use #property or #notProperty where it is appropriate. +Use assert.property() or assert.notProperty() to make the tests pass.
## Tests diff --git a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.english.md b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.english.md index e7f8daac7d..6a84759236 100644 --- a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.english.md +++ b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.english.md @@ -13,7 +13,7 @@ As a reminder, this project is being built upon the following starter project on ## Instructions
-Use #instanceOf or #notInstanceOf where it is appropriate. +Use assert.instanceOf() or assert.notInstanceOf() to make the tests pass.
## Tests diff --git a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-one-value-is-below-or-at-least-as-large-as-another.english.md b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-one-value-is-below-or-at-least-as-large-as-another.english.md index fd4dbace3d..5f4f6e6806 100644 --- a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-one-value-is-below-or-at-least-as-large-as-another.english.md +++ b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/test-if-one-value-is-below-or-at-least-as-large-as-another.english.md @@ -7,11 +7,11 @@ challengeType: 2 ## Description
As a reminder, this project is being built upon the following starter project on Glitch, or cloned from GitHub. -.isBelow() => a < b , .isAtLeast => a >= b.
## Instructions
+Use assert.isBelow() (i.e. less than) or assert.isAtLeast() (i.e. greater than or equal) to make the tests pass.
diff --git a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.english.md b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.english.md index e67b79f34e..14b3248f8f 100644 --- a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.english.md +++ b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.english.md @@ -8,12 +8,14 @@ challengeType: 2
As a reminder, this project is being built upon the following starter project on Glitch, or cloned from GitHub. +isOk() will test for a truthy value and isNotOk() will test for a falsy value. +Truthy reference: https://developer.mozilla.org/en-US/docs/Glossary/Truthy +Falsy reference: https://developer.mozilla.org/en-US/docs/Glossary/Falsy
## Instructions
Use assert.isOk() or assert.isNotOk() to make the tests pass. -.isOk(truthy) and .isNotOk(falsey) will pass.
## Tests diff --git a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/use-regular-expressions-to-test-a-string.english.md b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/use-regular-expressions-to-test-a-string.english.md index 5b91b4f06a..ea4e526f91 100644 --- a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/use-regular-expressions-to-test-a-string.english.md +++ b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/use-regular-expressions-to-test-a-string.english.md @@ -7,11 +7,12 @@ challengeType: 2 ## Description
As a reminder, this project is being built upon the following starter project on Glitch, or cloned from GitHub. -#match asserts that the actual value matches the second argument regular expression. +match() asserts that the actual value matches the second argument regular expression.
## Instructions
+Use assert.match() to make the tests pass.
diff --git a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/use-the-double-equals-to-assert-equality.english.md b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/use-the-double-equals-to-assert-equality.english.md index 01bd2c4689..61a28550d7 100644 --- a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/use-the-double-equals-to-assert-equality.english.md +++ b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/use-the-double-equals-to-assert-equality.english.md @@ -7,12 +7,12 @@ challengeType: 2 ## Description
As a reminder, this project is being built upon the following starter project on Glitch, or cloned from GitHub. -.equal(), .notEqual(). -.equal() compares objects using '=='. +equal() compares objects using ==.
## Instructions
+Use assert.equal() or assert.notEqual() to make the tests pass.
diff --git a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/use-the-triple-equals-to-assert-strict-equality.english.md b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/use-the-triple-equals-to-assert-strict-equality.english.md index a70fc3e2e9..7aaaa7b882 100644 --- a/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/use-the-triple-equals-to-assert-strict-equality.english.md +++ b/curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/use-the-triple-equals-to-assert-strict-equality.english.md @@ -7,12 +7,12 @@ challengeType: 2 ## Description
As a reminder, this project is being built upon the following starter project on Glitch, or cloned from GitHub. -.strictEqual(), .notStrictEqual(). -.strictEqual() compares objects using '==='. +strictEqual() compares objects using ===.
## Instructions
+Use assert.strictEqual() or assert.notStrictEqual() to make the tests pass.