Skip to content

Commit

Permalink
Remove src/config from master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
mickvangelderen committed Feb 19, 2016
1 parent fea7b7d commit bae34ab
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 43 deletions.
2 changes: 0 additions & 2 deletions src/config/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions src/config/EXAMPLE_VARIABLE.js

This file was deleted.

1 change: 0 additions & 1 deletion src/config/defaults.js

This file was deleted.

3 changes: 0 additions & 3 deletions src/config/locals.js

This file was deleted.

2 changes: 0 additions & 2 deletions src/config/readme.md

This file was deleted.

10 changes: 0 additions & 10 deletions src/config/util/get-string.js

This file was deleted.

18 changes: 0 additions & 18 deletions src/config/util/specifics.js

This file was deleted.

6 changes: 4 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import EXAMPLE_VARIABLE from './config/EXAMPLE_VARIABLE'
function hello() {
return 'Hello World!'
}

console.log(EXAMPLE_VARIABLE) // eslint-disable-line no-console
export default hello
10 changes: 8 additions & 2 deletions src/index.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
/* eslint-env mocha */
import hello from './'
import expect from 'must'

describe(__filename, () => {
it('should run', () => {
require('./index')
it('should export a function', () => {
expect(hello).to.be.a.function()
})

it('should return "Hello World!" when called', () => {
expect(hello()).to.equal("Hello World!")
})
})

0 comments on commit bae34ab

Please sign in to comment.