Skip to content

Instantly share code, notes, and snippets.

@qunabu
Created November 26, 2020 09:32
Show Gist options
  • Save qunabu/d7abfb0cda696a53edd7d3b5fa8ca9b5 to your computer and use it in GitHub Desktop.
Save qunabu/d7abfb0cda696a53edd7d3b5fa8ca9b5 to your computer and use it in GitHub Desktop.
Przygotowanie do testów
beforeEach(() => {
initializeCityDatabase();
});
afterEach(() => {
clearCityDatabase();
});
test("city database has Vienna", () => {
expect(isCity("Vienna")).toBeTruthy();
});
test("city database has San Juan", () => {
expect(isCity("San Juan")).toBeTruthy();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment