Commit 9eae1812 authored by Mike Greiling's avatar Mike Greiling

fix test failures

parent 5f7c0bd7
...@@ -41,9 +41,9 @@ import GroupsList from './groups_list'; ...@@ -41,9 +41,9 @@ import GroupsList from './groups_list';
import ProjectsList from './projects_list'; import ProjectsList from './projects_list';
import MiniPipelineGraph from './mini_pipeline_graph_dropdown'; import MiniPipelineGraph from './mini_pipeline_graph_dropdown';
import BlobLinePermalinkUpdater from './blob/blob_line_permalink_updater'; import BlobLinePermalinkUpdater from './blob/blob_line_permalink_updater';
import UserCallout from './user_callout';
const ShortcutsBlob = require('./shortcuts_blob'); const ShortcutsBlob = require('./shortcuts_blob');
const UserCallout = require('./user_callout');
(function() { (function() {
var Dispatcher; var Dispatcher;
......
...@@ -27,7 +27,7 @@ const USER_CALLOUT_TEMPLATE = ` ...@@ -27,7 +27,7 @@ const USER_CALLOUT_TEMPLATE = `
</div> </div>
</div>`; </div>`;
class UserCallout { export default class UserCallout {
constructor() { constructor() {
this.isCalloutDismissed = Cookies.get(USER_CALLOUT_COOKIE); this.isCalloutDismissed = Cookies.get(USER_CALLOUT_COOKIE);
this.userCalloutBody = $(userCalloutElementName); this.userCalloutBody = $(userCalloutElementName);
...@@ -56,5 +56,3 @@ class UserCallout { ...@@ -56,5 +56,3 @@ class UserCallout {
} }
} }
} }
module.exports = UserCallout;
import Cookies from 'js-cookie'; import Cookies from 'js-cookie';
import UserCallout from '~/user_callout';
const UserCallout = require('~/user_callout');
const USER_CALLOUT_COOKIE = 'user_callout_dismissed'; const USER_CALLOUT_COOKIE = 'user_callout_dismissed';
......
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