Skip to content

Commit 974b517

Browse files
Merge pull request learn-co-curriculum#9 from learn-co-curriculum/gracie-patch
updates wrapAdjective() test for clarity
2 parents ac48f8a + a0f4a91 commit 974b517

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

index.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
1-
// Your code here
1+
function saturdayFun(activity="roller-skate") {
2+
return `This Saturday, I want to ${activity}!`
3+
}
4+
5+
let mondayWork = function(activity="go to the office") {
6+
return `This Monday, I will ${activity}.`
7+
}
8+
9+
let wrapAdjective = function(style="*") {
10+
return function(adjective="special") {
11+
return `You are ${style}${adjective}${style}!`
12+
}
13+
}

test/indexTest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe("index.js", () => {
3333
})
3434

3535
it("when initialized with '*' creates a function that, when called, wraps an adjective in a highlight", function() {
36-
let result = wrapAdjective()
36+
let result = wrapAdjective('*')
3737
let emphatic = result("a hard worker")
3838
expect(emphatic).to.equal("You are *a hard worker*!")
3939
});

0 commit comments

Comments
 (0)