Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

Can also greet my dad #51

Open
GoldenStack opened this issue Aug 15, 2022 · 0 comments
Open

Can also greet my dad #51

GoldenStack opened this issue Aug 15, 2022 · 0 comments

Comments

@GoldenStack
Copy link

GoldenStack commented Aug 15, 2022

Hello.
I don't know if this is expected behaviour, but I can also greet my dad:

console.log(hiMom("Dad")); // Hi, Dad!

Thanks.

It appears as though there is a test case to avoid this:

test("should not say hi to dad", () => {
  expect(hiMom()).not.toBe("Hi, dad!");
});

but I can just put "Dad" in hiMom instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant