Skip to content

Commit 8ef6662

Browse files
committed
add a simpler test for valid input to start with
1 parent 4a89c7d commit 8ef6662

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎Sprint-2/implement/lookup.test.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ describe("when given invalid inputs", () => {
2424
});
2525

2626
describe("when given valid inputs", () => {
27+
test("should return an object where (Input ==> Output): keys:values ==> country code: corresponding currency", () => {
28+
expect(createLookup([["US", "USD"]])).toEqual({
29+
US: "USD",
30+
});
31+
});
2732
test("should return an object where (Input ==> Output): keys:values ==> country code: corresponding currency", () => {
2833
expect(
2934
createLookup([

0 commit comments

Comments
 (0)