Skip to content

Commit 6bff13c

Browse files
fix-test-descriptions
1 parent 22cc737 commit 6bff13c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Sprint-3/1-implement-and-rewrite-tests/rewrite-tests-with-jest/2-is-proper-fraction.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ test(`should return false when numerator is positive and denominator is negative
3232
test(`should return false when numerator equals denominator`, () => {
3333
expect(isProperFraction(5, 5)).toEqual(false);
3434
});
35-
test(`should return false when denominator is 0 and nominator is positive`, () => {
35+
test(`should return false when denominator is 0 and numerator is positive`, () => {
3636
expect(isProperFraction(5, 0)).toEqual(false);
3737
});
38-
test(`should return false when denominator is 0 and nominator is negative`, () => {
38+
test(`should return false when denominator is 0 and numerator is negative`, () => {
3939
expect(isProperFraction(-2, 0)).toEqual(false);
4040
});

Sprint-3/1-implement-and-rewrite-tests/rewrite-tests-with-jest/3-get-card-value.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ test(`Should return 10 when given an J♣`, () => {
2323
test(`Should return 10 when given an K♠`, () => {
2424
expect(getCardValue("K♠")).toEqual(10);
2525
});
26-
test(`Should return Error when given an ♦Q`, () => {
26+
test(`Should throw Error when given an ♦Q`, () => {
2727
expect(function() {getCardValue("♦Q");}).toThrow("Invalid card");
2828
});
29-
test(`Should return Error when given an 11♦`, () => {
29+
test(`Should throw Error when given an 11♦`, () => {
3030
expect(function() {getCardValue("11♦")}).toThrow("Invalid card");
3131
});
32-
test(`Should return Error when given an AX`, () => {
32+
test(`Should throw Error when given an AX`, () => {
3333
expect(function() {getCardValue("AX")}).toThrow("Invalid card");
3434
});
35-
test(`Should return Error when given an KX`, () => {
35+
test(`Should throw Error when given an KX`, () => {
3636
expect(function() {getCardValue("KX")}).toThrow("Invalid card");
3737
});
38-
test(`Should return Error when given an 5X`, () => {
38+
test(`Should throw Error when given an 5X`, () => {
3939
expect(function() {getCardValue("5X")}).toThrow("Invalid card");
4040
});
4141

0 commit comments

Comments
 (0)