Skip to content

Commit

Permalink
feat(Testcases): added a small test cases to check if test is working
Browse files Browse the repository at this point in the history
  • Loading branch information
varun2948 authored and spwoodcock committed Feb 20, 2024
1 parent 7cb51ec commit fcf436c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/frontend/src/sum.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function sum(a, b) {
return a + b;
}
8 changes: 8 additions & 0 deletions src/frontend/tests/App.test.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { sum } from '../src/sum';
import { describe, expect, test } from 'vitest';

describe('Test', () => {
test('adds 1 + 2 to equal 3', () => {
expect(sum(1, 2)).toBe(3);
});
});

0 comments on commit fcf436c

Please sign in to comment.