Skip to content

Instantly share code, notes, and snippets.

@drublic
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drublic/2eb5f4325e7459f16d78 to your computer and use it in GitHub Desktop.
Save drublic/2eb5f4325e7459f16d78 to your computer and use it in GitHub Desktop.
/**
* 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;
};
/**
* 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