Last active
August 29, 2015 14:27
-
-
Save drublic/2eb5f4325e7459f16d78 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** | |
* Module | |
*/ | |
// External Library | |
import _ from '../node_modules/lodash/dist/lodash.js'; | |
// Private variables | |
let _eventName = '_test'; | |
// Getter for private variable | |
export let getEventName = function () { | |
return _eventName; | |
}; |
This file contains hidden or 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
/** | |
* Test module | |
*/ | |
// Module | |
import * as Module from './module.js'; | |
// Suite | |
describe('Module', function () { | |
// Test | |
it('is available', function () { | |
expect(Module).not.to.be.null; | |
}); | |
it('has getter for event name', function () { | |
expect(Module.getEventName()).to.equal('_test'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment