Skip to content

Commit

Permalink
feat: ✨ add minus function
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-moonward committed Aug 26, 2022
1 parent b77e797 commit 232f3e3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joaomoon/simple-library",
"version": "1.2.1",
"version": "1.3.0",
"description": "",
"scripts": {
"test": "jest",
Expand Down Expand Up @@ -36,4 +36,4 @@
"files": [
"/dist"
]
}
}
5 changes: 5 additions & 0 deletions src/minus/index.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import sum from './index';

test('adds 1 + 2 to equal -1', () => {
expect(sum(1, 2)).toBe(-1);
});
1 change: 1 addition & 0 deletions src/minus/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default (a: number, b: number) => a - b;

0 comments on commit 232f3e3

Please sign in to comment.