Last active
October 20, 2021 06:26
-
-
Save avilde/7197f1b9837c8d843096cbd1bd393428 to your computer and use it in GitHub Desktop.
Simple Unit test - Developer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Developer } from "./Developer"; | |
// name | |
test("should drink coffee", () => { | |
// setup | |
const developer = new Developer(); | |
// action | |
const result = developer.drinkCoffee(); | |
// expectation | |
expect(result).toContain("coffee ☕"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment