Skip to content
Snippets Groups Projects
Verified Commit 6c97107d authored by Phil Hughes's avatar Phil Hughes
Browse files

fixed eslint

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