Skip to content

Commit

Permalink
Add tests and improve readme
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldsf committed Mar 23, 2021
1 parent 32d607a commit 1014d10
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@
"library",
"file"
],
"author": "Daniel Farias",
"author": "Daniel Farias <daniel.dsfarias@gmail.com>",
"license": "ISC",
"devDependencies": {
"jest": "^26.6.3"
},
"repository": {
"type": "git",
"url": "https://github.com/danieldsf/csv-utils.git"
},
"dependencies": {
"csv-parser": "^3.0.0",
"csv-writer": "^1.6.0"
Expand Down
8 changes: 8 additions & 0 deletions tests/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//const sum = require('./sum');
// TODO;

const sum = (a,b) => a+b;

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

0 comments on commit 1014d10

Please sign in to comment.