Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
illicitonion committed Jun 20, 2021
1 parent 94a925b commit 436f6c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions extra/1-currency-conversion.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CURRENCY FORMATTING
CURRENCY CONVERSION
===================
The business is breaking out into a new market and need to convert prices to USD
Write a function that converts a price to USD (exchange rate is 1.4 $ to £)
Expand All @@ -8,7 +8,7 @@
function convertToUSD() {}

/*
CURRENCY FORMATTING
CURRENCY CONVERSION
===================
The business is now breaking into the Brazilian market
Write a new function for converting to the Brazilian real (exchange rate is 5.7 BRL to £)
Expand Down Expand Up @@ -36,6 +36,6 @@ test("convertToBRL function works for £30", () => {
expect(convertToBRL(30)).toEqual(169.29);
});

test("convertToBRL function works for £0.99", () => {
test("convertToBRL function works for £1.50", () => {
expect(convertToBRL(1.5)).toEqual(8.46);
});
2 changes: 1 addition & 1 deletion extra/3-magic-8-ball.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ test("magic 8 ball returns different values each time", () => {
);
}

let seenPositivities = new Set(Array.from(answers.values()).map(checkAnswer));
let seenPositivities = new Set(Array.from(seenAnswers.values()).map(checkAnswer));
if (seenPositivities.size < 2) {
throw Error(
"Expected to random answers with different positivities each time shakeBall was called, but always got the same one"
Expand Down

0 comments on commit 436f6c3

Please sign in to comment.