Skip to content
Permalink
Browse files

feat(index): hello world feature with tests

  • Loading branch information...
patrickleet committed Apr 25, 2018
1 parent 3904f87 commit 840376c55c111008a5b06f4e118decba7e3eae5f
Showing with 11 additions and 1 deletion.
  1. +2 −1 .gitignore
  2. +8 −0 __tests__/index.js
  3. +1 −0 src/index.js
@@ -1 +1,2 @@
node_modules
node_modules
coverage
@@ -0,0 +1,8 @@
const index = require('index')

describe('index', () => {
it(`returns { hello: 'world' }`, () => {
let result = index()
expect(result).toEqual({ hello: 'world' })
})
})
@@ -0,0 +1 @@
module.exports = () => ({ hello: 'world' })

0 comments on commit 840376c

Please sign in to comment.
You can’t perform that action at this time.