Skip to content

Commit

Permalink
feat: added new function + test (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
avaricz authored Jul 19, 2024
1 parent 134963a commit 55e3378
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/src/lessons/adhad.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 utils/src/lessons/adhas.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { describe, it, expect } from 'vitest';
import { sum } from './adhad';

describe(sum.name, () => {
it('should add 2 numbers', () => {
expect(sum(2, 4)).toBe(6);
});
});

0 comments on commit 55e3378

Please sign in to comment.