Skip to content
Snippets Groups Projects
sum.test.js 422 B
Newer Older
nilstes's avatar
nilstes committed
const sum = require('./sum');


/*
beforeEach(() => {
  initializeCityDatabase();
});

afterEach(() => {
  clearCityDatabase();
});

test('city database has Vienna', () => {
  expect(isCity('Vienna')).toBeTruthy();
});

test('city database has San Juan', () => {
  expect(isCity('San Juan')).toBeTruthy();
}); */

test("adds 1 + 2 to equal 3", () => {
nilstes's avatar
nilstes committed
  console.log("Running simple test");
nilstes's avatar
nilstes committed
  expect(sum(1, 2)).toBe(3);
});