-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove src/config from master branch
- Loading branch information
1 parent
fea7b7d
commit bae34ab
Showing
9 changed files
with
12 additions
and
43 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!") | ||
}) | ||
}) |