Commit 6c97107d authored by Phil Hughes's avatar Phil Hughes

fixed eslint

parent bbf7ea24
...@@ -44,14 +44,14 @@ const createFlashEl = (message, type) => ` ...@@ -44,14 +44,14 @@ const createFlashEl = (message, type) => `
* along with ability to provide actionConfig which can be used to show * along with ability to provide actionConfig which can be used to show
* additional action or link on banner next to message * additional action or link on banner next to message
* *
* @param {String} message Flash message text * @param {String} message Flash message text
* @param {String} type Type of Flash, it can be `notice` or `alert` (default) * @param {String} type Type of Flash, it can be `notice` or `alert` (default)
* @param {Object} parent Reference to parent element under which Flash needs to appear * @param {Object} parent Reference to parent element under which Flash needs to appear
* @param {Object} actonConfig Map of config to show action on banner * @param {Object} actonConfig Map of config to show action on banner
* @param {String} href URL to which action config should point to (default: '#') * @param {String} href URL to which action config should point to (default: '#')
* @param {String} title Title of action * @param {String} title Title of action
* @param {Function} clickHandler Method to call when action is clicked on * @param {Function} clickHandler Method to call when action is clicked on
* @param {Boolean} fadeTransition Boolean to determine whether to fade the alert out * @param {Boolean} fadeTransition Boolean to determine whether to fade the alert out
*/ */
const createFlash = function createFlash( const createFlash = function createFlash(
message, message,
......
...@@ -135,7 +135,6 @@ describe('Flash', () => { ...@@ -135,7 +135,6 @@ describe('Flash', () => {
describe('createFlash', () => { describe('createFlash', () => {
describe('no flash-container', () => { describe('no flash-container', () => {
it('does not add to the DOM', () => { it('does not add to the DOM', () => {
const el = flash('test');
const flashEl = flash('testing'); const flashEl = flash('testing');
expect( expect(
...@@ -185,7 +184,7 @@ describe('Flash', () => { ...@@ -185,7 +184,7 @@ describe('Flash', () => {
expect( expect(
document.querySelector('.flash-text').className, document.querySelector('.flash-text').className,
).toBe('flash-text container-fluid container-limited') ).toBe('flash-text container-fluid container-limited');
}); });
it('does not add container when outside of content-wrapper', () => { it('does not add container when outside of content-wrapper', () => {
...@@ -194,7 +193,7 @@ describe('Flash', () => { ...@@ -194,7 +193,7 @@ describe('Flash', () => {
expect( expect(
document.querySelector('.flash-text').className, document.querySelector('.flash-text').className,
).toBe('flash-text') ).toBe('flash-text');
}); });
it('removes element after clicking', () => { it('removes element after clicking', () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment