Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
283f968e
Commit
283f968e
authored
May 16, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update frontend specs to use ES module syntax
parent
6c695c52
Changes
51
Hide whitespace changes
Inline
Side-by-side
Showing
51 changed files
with
129 additions
and
131 deletions
+129
-131
spec/javascripts/abuse_reports_spec.js
spec/javascripts/abuse_reports_spec.js
+2
-2
spec/javascripts/activities_spec.js
spec/javascripts/activities_spec.js
+3
-3
spec/javascripts/ajax_loading_spinner_spec.js
spec/javascripts/ajax_loading_spinner_spec.js
+4
-4
spec/javascripts/awards_handler_spec.js
spec/javascripts/awards_handler_spec.js
+1
-1
spec/javascripts/behaviors/autosize_spec.js
spec/javascripts/behaviors/autosize_spec.js
+1
-1
spec/javascripts/behaviors/quick_submit_spec.js
spec/javascripts/behaviors/quick_submit_spec.js
+1
-1
spec/javascripts/behaviors/requires_input_spec.js
spec/javascripts/behaviors/requires_input_spec.js
+1
-1
spec/javascripts/blob/create_branch_dropdown_spec.js
spec/javascripts/blob/create_branch_dropdown_spec.js
+3
-3
spec/javascripts/blob/target_branch_dropdown_spec.js
spec/javascripts/blob/target_branch_dropdown_spec.js
+3
-3
spec/javascripts/boards/board_card_spec.js
spec/javascripts/boards/board_card_spec.js
+4
-4
spec/javascripts/boards/board_new_issue_spec.js
spec/javascripts/boards/board_new_issue_spec.js
+2
-2
spec/javascripts/commits_spec.js
spec/javascripts/commits_spec.js
+3
-3
spec/javascripts/datetime_utility_spec.js
spec/javascripts/datetime_utility_spec.js
+1
-1
spec/javascripts/diff_comments_store_spec.js
spec/javascripts/diff_comments_store_spec.js
+3
-3
spec/javascripts/extensions/array_spec.js
spec/javascripts/extensions/array_spec.js
+1
-1
spec/javascripts/filtered_search/dropdown_user_spec.js
spec/javascripts/filtered_search/dropdown_user_spec.js
+4
-4
spec/javascripts/filtered_search/dropdown_utils_spec.js
spec/javascripts/filtered_search/dropdown_utils_spec.js
+4
-4
spec/javascripts/filtered_search/filtered_search_dropdown_manager_spec.js
.../filtered_search/filtered_search_dropdown_manager_spec.js
+4
-4
spec/javascripts/filtered_search/filtered_search_manager_spec.js
...vascripts/filtered_search/filtered_search_manager_spec.js
+7
-8
spec/javascripts/filtered_search/filtered_search_token_keys_spec.js
...cripts/filtered_search/filtered_search_token_keys_spec.js
+2
-2
spec/javascripts/filtered_search/filtered_search_tokenizer_spec.js
...scripts/filtered_search/filtered_search_tokenizer_spec.js
+3
-3
spec/javascripts/filtered_search/filtered_search_visual_tokens_spec.js
...pts/filtered_search/filtered_search_visual_tokens_spec.js
+2
-2
spec/javascripts/gfm_auto_complete_spec.js
spec/javascripts/gfm_auto_complete_spec.js
+2
-2
spec/javascripts/gl_dropdown_spec.js
spec/javascripts/gl_dropdown_spec.js
+3
-3
spec/javascripts/gl_field_errors_spec.js
spec/javascripts/gl_field_errors_spec.js
+1
-1
spec/javascripts/gl_form_spec.js
spec/javascripts/gl_form_spec.js
+5
-5
spec/javascripts/header_spec.js
spec/javascripts/header_spec.js
+2
-2
spec/javascripts/helpers/class_spec_helper_spec.js
spec/javascripts/helpers/class_spec_helper_spec.js
+1
-1
spec/javascripts/issuable_spec.js
spec/javascripts/issuable_spec.js
+2
-2
spec/javascripts/issue_spec.js
spec/javascripts/issue_spec.js
+1
-1
spec/javascripts/labels_issue_sidebar_spec.js
spec/javascripts/labels_issue_sidebar_spec.js
+8
-8
spec/javascripts/lib/utils/common_utils_spec.js
spec/javascripts/lib/utils/common_utils_spec.js
+1
-1
spec/javascripts/lib/utils/text_utility_spec.js
spec/javascripts/lib/utils/text_utility_spec.js
+1
-1
spec/javascripts/line_highlighter_spec.js
spec/javascripts/line_highlighter_spec.js
+1
-1
spec/javascripts/merge_request_spec.js
spec/javascripts/merge_request_spec.js
+1
-1
spec/javascripts/merge_request_tabs_spec.js
spec/javascripts/merge_request_tabs_spec.js
+8
-8
spec/javascripts/new_branch_spec.js
spec/javascripts/new_branch_spec.js
+1
-1
spec/javascripts/pager_spec.js
spec/javascripts/pager_spec.js
+1
-1
spec/javascripts/pretty_time_spec.js
spec/javascripts/pretty_time_spec.js
+1
-1
spec/javascripts/project_title_spec.js
spec/javascripts/project_title_spec.js
+5
-5
spec/javascripts/search_autocomplete_spec.js
spec/javascripts/search_autocomplete_spec.js
+4
-4
spec/javascripts/shortcuts_issuable_spec.js
spec/javascripts/shortcuts_issuable_spec.js
+2
-2
spec/javascripts/signin_tabs_memoizer_spec.js
spec/javascripts/signin_tabs_memoizer_spec.js
+1
-1
spec/javascripts/smart_interval_spec.js
spec/javascripts/smart_interval_spec.js
+1
-1
spec/javascripts/syntax_highlight_spec.js
spec/javascripts/syntax_highlight_spec.js
+1
-1
spec/javascripts/todos_spec.js
spec/javascripts/todos_spec.js
+2
-2
spec/javascripts/u2f/authenticate_spec.js
spec/javascripts/u2f/authenticate_spec.js
+5
-5
spec/javascripts/u2f/register_spec.js
spec/javascripts/u2f/register_spec.js
+5
-5
spec/javascripts/version_check_image_spec.js
spec/javascripts/version_check_image_spec.js
+2
-3
spec/javascripts/visibility_select_spec.js
spec/javascripts/visibility_select_spec.js
+1
-1
spec/javascripts/zen_mode_spec.js
spec/javascripts/zen_mode_spec.js
+1
-1
No files found.
spec/javascripts/abuse_reports_spec.js
View file @
283f968e
require
(
'
~/lib/utils/text_utility
'
)
;
require
(
'
~/abuse_reports
'
)
;
import
'
~/lib/utils/text_utility
'
;
import
'
~/abuse_reports
'
;
((
global
)
=>
{
describe
(
'
Abuse Reports
'
,
()
=>
{
...
...
spec/javascripts/activities_spec.js
View file @
283f968e
/* eslint-disable no-unused-expressions, no-prototype-builtins, no-new, no-shadow, max-len */
require
(
'
vendor/jquery.endless-scroll.js
'
)
;
require
(
'
~/pager
'
)
;
require
(
'
~/activities
'
)
;
import
'
vendor/jquery.endless-scroll.js
'
;
import
'
~/pager
'
;
import
'
~/activities
'
;
(()
=>
{
window
.
gon
||
(
window
.
gon
=
{});
...
...
spec/javascripts/ajax_loading_spinner_spec.js
View file @
283f968e
require
(
'
~/extensions/array
'
)
;
require
(
'
jquery
'
)
;
require
(
'
jquery-ujs
'
)
;
require
(
'
~/ajax_loading_spinner
'
)
;
import
'
~/extensions/array
'
;
import
'
jquery
'
;
import
'
jquery-ujs
'
;
import
'
~/ajax_loading_spinner
'
;
describe
(
'
Ajax Loading Spinner
'
,
()
=>
{
const
fixtureTemplate
=
'
static/ajax_loading_spinner.html.raw
'
;
...
...
spec/javascripts/awards_handler_spec.js
View file @
283f968e
...
...
@@ -3,7 +3,7 @@
import
Cookies
from
'
js-cookie
'
;
import
AwardsHandler
from
'
~/awards_handler
'
;
require
(
'
~/lib/utils/common_utils
'
)
;
import
'
~/lib/utils/common_utils
'
;
(
function
()
{
var
awardsHandler
,
lazyAssert
,
urlRoot
,
openAndWaitForEmojiMenu
;
...
...
spec/javascripts/behaviors/autosize_spec.js
View file @
283f968e
/* eslint-disable space-before-function-paren, no-var, comma-dangle, no-return-assign, max-len */
require
(
'
~/behaviors/autosize
'
)
;
import
'
~/behaviors/autosize
'
;
(
function
()
{
describe
(
'
Autosize behavior
'
,
function
()
{
...
...
spec/javascripts/behaviors/quick_submit_spec.js
View file @
283f968e
/* eslint-disable space-before-function-paren, no-var, no-return-assign, comma-dangle, jasmine/no-spec-dupes, new-cap, max-len */
require
(
'
~/behaviors/quick_submit
'
)
;
import
'
~/behaviors/quick_submit
'
;
(
function
()
{
describe
(
'
Quick Submit behavior
'
,
function
()
{
...
...
spec/javascripts/behaviors/requires_input_spec.js
View file @
283f968e
/* eslint-disable space-before-function-paren, no-var */
require
(
'
~/behaviors/requires_input
'
)
;
import
'
~/behaviors/requires_input
'
;
(
function
()
{
describe
(
'
requiresInput
'
,
function
()
{
...
...
spec/javascripts/blob/create_branch_dropdown_spec.js
View file @
283f968e
require
(
'
~/gl_dropdown
'
)
;
require
(
'
~/blob/create_branch_dropdown
'
)
;
require
(
'
~/blob/target_branch_dropdown
'
)
;
import
'
~/gl_dropdown
'
;
import
'
~/blob/create_branch_dropdown
'
;
import
'
~/blob/target_branch_dropdown
'
;
describe
(
'
CreateBranchDropdown
'
,
()
=>
{
const
fixtureTemplate
=
'
static/target_branch_dropdown.html.raw
'
;
...
...
spec/javascripts/blob/target_branch_dropdown_spec.js
View file @
283f968e
require
(
'
~/gl_dropdown
'
)
;
require
(
'
~/blob/create_branch_dropdown
'
)
;
require
(
'
~/blob/target_branch_dropdown
'
)
;
import
'
~/gl_dropdown
'
;
import
'
~/blob/create_branch_dropdown
'
;
import
'
~/blob/target_branch_dropdown
'
;
describe
(
'
TargetBranchDropdown
'
,
()
=>
{
const
fixtureTemplate
=
'
static/target_branch_dropdown.html.raw
'
;
...
...
spec/javascripts/boards/board_card_spec.js
View file @
283f968e
...
...
@@ -8,11 +8,11 @@
import
Vue
from
'
vue
'
;
import
'
~/boards/models/assignee
'
;
require
(
'
~/boards/models/list
'
)
;
require
(
'
~/boards/models/label
'
)
;
require
(
'
~/boards/stores/boards_store
'
)
;
import
'
~/boards/models/list
'
;
import
'
~/boards/models/label
'
;
import
'
~/boards/stores/boards_store
'
;
const
boardCard
=
require
(
'
~/boards/components/board_card
'
).
default
;
require
(
'
./mock_data
'
)
;
import
'
./mock_data
'
;
describe
(
'
Issue card
'
,
()
=>
{
let
vm
;
...
...
spec/javascripts/boards/board_new_issue_spec.js
View file @
283f968e
...
...
@@ -6,8 +6,8 @@
import
Vue
from
'
vue
'
;
import
boardNewIssue
from
'
~/boards/components/board_new_issue
'
;
require
(
'
~/boards/models/list
'
)
;
require
(
'
./mock_data
'
)
;
import
'
~/boards/models/list
'
;
import
'
./mock_data
'
;
describe
(
'
Issue boards new issue form
'
,
()
=>
{
let
vm
;
...
...
spec/javascripts/commits_spec.js
View file @
283f968e
/* global CommitsList */
require
(
'
vendor/jquery.endless-scroll
'
)
;
require
(
'
~/pager
'
)
;
require
(
'
~/commits
'
)
;
import
'
vendor/jquery.endless-scroll
'
;
import
'
~/pager
'
;
import
'
~/commits
'
;
(()
=>
{
// TODO: remove this hack!
...
...
spec/javascripts/datetime_utility_spec.js
View file @
283f968e
require
(
'
~/lib/utils/datetime_utility
'
)
;
import
'
~/lib/utils/datetime_utility
'
;
(()
=>
{
describe
(
'
Date time utils
'
,
()
=>
{
...
...
spec/javascripts/diff_comments_store_spec.js
View file @
283f968e
/* eslint-disable jasmine/no-global-setup, dot-notation, jasmine/no-expect-in-setup-teardown, max-len */
/* global CommentsStore */
require
(
'
~/diff_notes/models/discussion
'
)
;
require
(
'
~/diff_notes/models/note
'
)
;
require
(
'
~/diff_notes/stores/comments
'
)
;
import
'
~/diff_notes/models/discussion
'
;
import
'
~/diff_notes/models/note
'
;
import
'
~/diff_notes/stores/comments
'
;
function
createDiscussion
(
noteId
=
1
,
resolved
=
true
)
{
CommentsStore
.
create
({
...
...
spec/javascripts/extensions/array_spec.js
View file @
283f968e
/* eslint-disable space-before-function-paren, no-var */
require
(
'
~/extensions/array
'
)
;
import
'
~/extensions/array
'
;
(
function
()
{
describe
(
'
Array extensions
'
,
function
()
{
...
...
spec/javascripts/filtered_search/dropdown_user_spec.js
View file @
283f968e
require
(
'
~/filtered_search/dropdown_utils
'
)
;
require
(
'
~/filtered_search/filtered_search_tokenizer
'
)
;
require
(
'
~/filtered_search/filtered_search_dropdown
'
)
;
require
(
'
~/filtered_search/dropdown_user
'
)
;
import
'
~/filtered_search/dropdown_utils
'
;
import
'
~/filtered_search/filtered_search_tokenizer
'
;
import
'
~/filtered_search/filtered_search_dropdown
'
;
import
'
~/filtered_search/dropdown_user
'
;
describe
(
'
Dropdown User
'
,
()
=>
{
describe
(
'
getSearchInput
'
,
()
=>
{
...
...
spec/javascripts/filtered_search/dropdown_utils_spec.js
View file @
283f968e
require
(
'
~/extensions/array
'
)
;
require
(
'
~/filtered_search/dropdown_utils
'
)
;
require
(
'
~/filtered_search/filtered_search_tokenizer
'
)
;
require
(
'
~/filtered_search/filtered_search_dropdown_manager
'
)
;
import
'
~/extensions/array
'
;
import
'
~/filtered_search/dropdown_utils
'
;
import
'
~/filtered_search/filtered_search_tokenizer
'
;
import
'
~/filtered_search/filtered_search_dropdown_manager
'
;
describe
(
'
Dropdown Utils
'
,
()
=>
{
describe
(
'
getEscapedText
'
,
()
=>
{
...
...
spec/javascripts/filtered_search/filtered_search_dropdown_manager_spec.js
View file @
283f968e
require
(
'
~/extensions/array
'
)
;
require
(
'
~/filtered_search/filtered_search_visual_tokens
'
)
;
require
(
'
~/filtered_search/filtered_search_tokenizer
'
)
;
require
(
'
~/filtered_search/filtered_search_dropdown_manager
'
)
;
import
'
~/extensions/array
'
;
import
'
~/filtered_search/filtered_search_visual_tokens
'
;
import
'
~/filtered_search/filtered_search_tokenizer
'
;
import
'
~/filtered_search/filtered_search_dropdown_manager
'
;
describe
(
'
Filtered Search Dropdown Manager
'
,
()
=>
{
describe
(
'
addWordToInput
'
,
()
=>
{
...
...
spec/javascripts/filtered_search/filtered_search_manager_spec.js
View file @
283f968e
import
*
as
recentSearchesStoreSrc
from
'
~/filtered_search/stores/recent_searches_store
'
;
import
RecentSearchesService
from
'
~/filtered_search/services/recent_searches_service
'
;
import
RecentSearchesServiceError
from
'
~/filtered_search/services/recent_searches_service_error
'
;
require
(
'
~/lib/utils/url_utility
'
);
require
(
'
~/lib/utils/common_utils
'
);
require
(
'
~/filtered_search/filtered_search_token_keys
'
);
require
(
'
~/filtered_search/filtered_search_tokenizer
'
);
require
(
'
~/filtered_search/filtered_search_dropdown_manager
'
);
require
(
'
~/filtered_search/filtered_search_manager
'
);
const
FilteredSearchSpecHelper
=
require
(
'
../helpers/filtered_search_spec_helper
'
);
import
'
~/lib/utils/url_utility
'
;
import
'
~/lib/utils/common_utils
'
;
import
'
~/filtered_search/filtered_search_token_keys
'
;
import
'
~/filtered_search/filtered_search_tokenizer
'
;
import
'
~/filtered_search/filtered_search_dropdown_manager
'
;
import
'
~/filtered_search/filtered_search_manager
'
;
import
FilteredSearchSpecHelper
from
'
../helpers/filtered_search_spec_helper
'
;
describe
(
'
Filtered Search Manager
'
,
()
=>
{
let
input
;
...
...
spec/javascripts/filtered_search/filtered_search_token_keys_spec.js
View file @
283f968e
require
(
'
~/extensions/array
'
)
;
require
(
'
~/filtered_search/filtered_search_token_keys
'
)
;
import
'
~/extensions/array
'
;
import
'
~/filtered_search/filtered_search_token_keys
'
;
describe
(
'
Filtered Search Token Keys
'
,
()
=>
{
describe
(
'
get
'
,
()
=>
{
...
...
spec/javascripts/filtered_search/filtered_search_tokenizer_spec.js
View file @
283f968e
require
(
'
~/extensions/array
'
)
;
require
(
'
~/filtered_search/filtered_search_token_keys
'
)
;
require
(
'
~/filtered_search/filtered_search_tokenizer
'
)
;
import
'
~/extensions/array
'
;
import
'
~/filtered_search/filtered_search_token_keys
'
;
import
'
~/filtered_search/filtered_search_tokenizer
'
;
describe
(
'
Filtered Search Tokenizer
'
,
()
=>
{
describe
(
'
processTokens
'
,
()
=>
{
...
...
spec/javascripts/filtered_search/filtered_search_visual_tokens_spec.js
View file @
283f968e
import
AjaxCache
from
'
~/lib/utils/ajax_cache
'
;
require
(
'
~/filtered_search/filtered_search_visual_tokens
'
)
;
const
FilteredSearchSpecHelper
=
require
(
'
../helpers/filtered_search_spec_helper
'
)
;
import
'
~/filtered_search/filtered_search_visual_tokens
'
;
import
FilteredSearchSpecHelper
from
'
../helpers/filtered_search_spec_helper
'
;
describe
(
'
Filtered Search Visual Tokens
'
,
()
=>
{
let
tokensContainer
;
...
...
spec/javascripts/gfm_auto_complete_spec.js
View file @
283f968e
...
...
@@ -2,8 +2,8 @@
import
GfmAutoComplete
from
'
~/gfm_auto_complete
'
;
require
(
'
vendor/jquery.caret
'
)
;
require
(
'
vendor/jquery.atwho
'
)
;
import
'
vendor/jquery.caret
'
;
import
'
vendor/jquery.atwho
'
;
describe
(
'
GfmAutoComplete
'
,
function
()
{
const
gfmAutoCompleteCallbacks
=
GfmAutoComplete
.
prototype
.
getDefaultCallbacks
.
call
({
...
...
spec/javascripts/gl_dropdown_spec.js
View file @
283f968e
/* eslint-disable comma-dangle, no-param-reassign, no-unused-expressions, max-len */
require
(
'
~/gl_dropdown
'
)
;
require
(
'
~/lib/utils/common_utils
'
)
;
require
(
'
~/lib/utils/url_utility
'
)
;
import
'
~/gl_dropdown
'
;
import
'
~/lib/utils/common_utils
'
;
import
'
~/lib/utils/url_utility
'
;
(()
=>
{
const
NON_SELECTABLE_CLASSES
=
'
.divider, .separator, .dropdown-header, .dropdown-menu-empty-link
'
;
...
...
spec/javascripts/gl_field_errors_spec.js
View file @
283f968e
/* eslint-disable space-before-function-paren, arrow-body-style */
require
(
'
~/gl_field_errors
'
)
;
import
'
~/gl_field_errors
'
;
((
global
)
=>
{
preloadFixtures
(
'
static/gl_field_errors.html.raw
'
);
...
...
spec/javascripts/gl_form_spec.js
View file @
283f968e
/* global autosize */
import
autosize
from
'
vendor/autosize
'
;
import
'
~/gl_form
'
;
import
'
~/lib/utils/text_utility
'
;
import
'
~/lib/utils/common_utils
'
;
window
.
autosize
=
require
(
'
vendor/autosize
'
);
require
(
'
~/gl_form
'
);
require
(
'
~/lib/utils/text_utility
'
);
require
(
'
~/lib/utils/common_utils
'
);
window
.
autosize
=
autosize
;
describe
(
'
GLForm
'
,
()
=>
{
const
global
=
window
.
gl
||
(
window
.
gl
=
{});
...
...
spec/javascripts/header_spec.js
View file @
283f968e
/* eslint-disable space-before-function-paren, no-var */
require
(
'
~/header
'
)
;
require
(
'
~/lib/utils/text_utility
'
)
;
import
'
~/header
'
;
import
'
~/lib/utils/text_utility
'
;
(
function
()
{
describe
(
'
Header
'
,
function
()
{
...
...
spec/javascripts/helpers/class_spec_helper_spec.js
View file @
283f968e
/* global ClassSpecHelper */
require
(
'
./class_spec_helper
'
)
;
import
'
./class_spec_helper
'
;
describe
(
'
ClassSpecHelper
'
,
()
=>
{
describe
(
'
itShouldBeAStaticMethod
'
,
function
()
{
...
...
spec/javascripts/issuable_spec.js
View file @
283f968e
/* global Issuable */
require
(
'
~/lib/utils/url_utility
'
)
;
require
(
'
~/issuable
'
)
;
import
'
~/lib/utils/url_utility
'
;
import
'
~/issuable
'
;
(()
=>
{
const
BASE_URL
=
'
/user/project/issues?scope=all&state=closed
'
;
...
...
spec/javascripts/issue_spec.js
View file @
283f968e
/* eslint-disable space-before-function-paren, one-var, one-var-declaration-per-line, no-use-before-define, comma-dangle, max-len */
import
Issue
from
'
~/issue
'
;
require
(
'
~/lib/utils/text_utility
'
)
;
import
'
~/lib/utils/text_utility
'
;
describe
(
'
Issue
'
,
function
()
{
let
$boxClosed
,
$boxOpen
,
$btnClose
,
$btnReopen
;
...
...
spec/javascripts/labels_issue_sidebar_spec.js
View file @
283f968e
...
...
@@ -2,14 +2,14 @@
/* global IssuableContext */
/* global LabelsSelect */
require
(
'
~/gl_dropdown
'
)
;
require
(
'
select2
'
)
;
require
(
'
vendor/jquery.nicescroll
'
)
;
require
(
'
~/api
'
)
;
require
(
'
~/create_label
'
)
;
require
(
'
~/issuable_context
'
)
;
require
(
'
~/users_select
'
)
;
require
(
'
~/labels_select
'
)
;
import
'
~/gl_dropdown
'
;
import
'
select2
'
;
import
'
vendor/jquery.nicescroll
'
;
import
'
~/api
'
;
import
'
~/create_label
'
;
import
'
~/issuable_context
'
;
import
'
~/users_select
'
;
import
'
~/labels_select
'
;
(()
=>
{
let
saveLabelCount
=
0
;
...
...
spec/javascripts/lib/utils/common_utils_spec.js
View file @
283f968e
/* eslint-disable promise/catch-or-return */
require
(
'
~/lib/utils/common_utils
'
)
;
import
'
~/lib/utils/common_utils
'
;
(()
=>
{
describe
(
'
common_utils
'
,
()
=>
{
...
...
spec/javascripts/lib/utils/text_utility_spec.js
View file @
283f968e
require
(
'
~/lib/utils/text_utility
'
)
;
import
'
~/lib/utils/text_utility
'
;
describe
(
'
text_utility
'
,
()
=>
{
describe
(
'
gl.text.getTextWidth
'
,
()
=>
{
...
...
spec/javascripts/line_highlighter_spec.js
View file @
283f968e
/* eslint-disable space-before-function-paren, no-var, no-param-reassign, quotes, prefer-template, no-else-return, new-cap, dot-notation, no-return-assign, comma-dangle, no-new, one-var, one-var-declaration-per-line, jasmine/no-spec-dupes, no-underscore-dangle, max-len */
/* global LineHighlighter */
require
(
'
~/line_highlighter
'
)
;
import
'
~/line_highlighter
'
;
(
function
()
{
describe
(
'
LineHighlighter
'
,
function
()
{
...
...
spec/javascripts/merge_request_spec.js
View file @
283f968e
/* eslint-disable space-before-function-paren, no-return-assign */
/* global MergeRequest */
require
(
'
~/merge_request
'
)
;
import
'
~/merge_request
'
;
(
function
()
{
describe
(
'
MergeRequest
'
,
function
()
{
...
...
spec/javascripts/merge_request_tabs_spec.js
View file @
283f968e
/* eslint-disable no-var, comma-dangle, object-shorthand */
require
(
'
~/merge_request_tabs
'
)
;
require
(
'
~/commit/pipelines/pipelines_bundle.js
'
)
;
require
(
'
~/breakpoints
'
)
;
require
(
'
~/lib/utils/common_utils
'
)
;
require
(
'
~/diff
'
)
;
require
(
'
~/single_file_diff
'
)
;
require
(
'
~/files_comment_button
'
)
;
require
(
'
vendor/jquery.scrollTo
'
)
;
import
'
~/merge_request_tabs
'
;
import
'
~/commit/pipelines/pipelines_bundle.js
'
;
import
'
~/breakpoints
'
;
import
'
~/lib/utils/common_utils
'
;
import
'
~/diff
'
;
import
'
~/single_file_diff
'
;
import
'
~/files_comment_button
'
;
import
'
vendor/jquery.scrollTo
'
;
(
function
()
{
// TODO: remove this hack!
...
...
spec/javascripts/new_branch_spec.js
View file @
283f968e
/* eslint-disable space-before-function-paren, one-var, no-var, one-var-declaration-per-line, no-return-assign, quotes, max-len */
/* global NewBranchForm */
require
(
'
~/new_branch_form
'
)
;
import
'
~/new_branch_form
'
;
(
function
()
{
describe
(
'
Branch
'
,
function
()
{
...
...
spec/javascripts/pager_spec.js
View file @
283f968e
/* global fixture */
require
(
'
~/pager
'
)
;
import
'
~/pager
'
;
describe
(
'
pager
'
,
()
=>
{
const
Pager
=
window
.
Pager
;
...
...
spec/javascripts/pretty_time_spec.js
View file @
283f968e
require
(
'
~/lib/utils/pretty_time
'
)
;
import
'
~/lib/utils/pretty_time
'
;
(()
=>
{
const
prettyTime
=
gl
.
utils
.
prettyTime
;
...
...
spec/javascripts/project_title_spec.js
View file @
283f968e
/* eslint-disable space-before-function-paren, no-unused-expressions, no-return-assign, no-param-reassign, no-var, new-cap, wrap-iife, no-unused-vars, quotes, jasmine/no-expect-in-setup-teardown, max-len */
/* global Project */
require
(
'
select2/select2.js
'
)
;
require
(
'
~/gl_dropdown
'
)
;
require
(
'
~/api
'
)
;
require
(
'
~/project_select
'
)
;
require
(
'
~/project
'
)
;
import
'
select2/select2.js
'
;
import
'
~/gl_dropdown
'
;
import
'
~/api
'
;
import
'
~/project_select
'
;
import
'
~/project
'
;
(
function
()
{
describe
(
'
Project Title
'
,
function
()
{
...
...
spec/javascripts/search_autocomplete_spec.js
View file @
283f968e
/* eslint-disable space-before-function-paren, max-len, no-var, one-var, one-var-declaration-per-line, no-unused-expressions, consistent-return, no-param-reassign, default-case, no-return-assign, comma-dangle, object-shorthand, prefer-template, quotes, new-parens, vars-on-top, new-cap, max-len */
require
(
'
~/gl_dropdown
'
)
;
require
(
'
~/search_autocomplete
'
)
;
require
(
'
~/lib/utils/common_utils
'
)
;
require
(
'
vendor/fuzzaldrin-plus
'
)
;
import
'
~/gl_dropdown
'
;
import
'
~/search_autocomplete
'
;
import
'
~/lib/utils/common_utils
'
;
import
'
vendor/fuzzaldrin-plus
'
;
(
function
()
{
var
addBodyAttributes
,
assertLinks
,
dashboardIssuesPath
,
dashboardMRsPath
,
groupIssuesPath
,
groupMRsPath
,
groupName
,
mockDashboardOptions
,
mockGroupOptions
,
mockProjectOptions
,
projectIssuesPath
,
projectMRsPath
,
projectName
,
userId
,
widget
;
...
...
spec/javascripts/shortcuts_issuable_spec.js
View file @
283f968e
/* eslint-disable space-before-function-paren, no-return-assign, no-var, quotes */
/* global ShortcutsIssuable */
require
(
'
~/copy_as_gfm
'
)
;
require
(
'
~/shortcuts_issuable
'
)
;
import
'
~/copy_as_gfm
'
;
import
'
~/shortcuts_issuable
'
;
(
function
()
{
describe
(
'
ShortcutsIssuable
'
,
function
()
{
...
...
spec/javascripts/signin_tabs_memoizer_spec.js
View file @
283f968e
import
AccessorUtilities
from
'
~/lib/utils/accessor
'
;
require
(
'
~/signin_tabs_memoizer
'
)
;
import
'
~/signin_tabs_memoizer
'
;
((
global
)
=>
{
describe
(
'
SigninTabsMemoizer
'
,
()
=>
{
...
...
spec/javascripts/smart_interval_spec.js
View file @
283f968e
require
(
'
~/smart_interval
'
)
;
import
'
~/smart_interval
'
;
(()
=>
{
const
DEFAULT_MAX_INTERVAL
=
100
;
...
...
spec/javascripts/syntax_highlight_spec.js
View file @
283f968e
/* eslint-disable space-before-function-paren, no-var, no-return-assign, quotes */
require
(
'
~/syntax_highlight
'
)
;
import
'
~/syntax_highlight
'
;
(
function
()
{
describe
(
'
Syntax Highlighter
'
,
function
()
{
...
...
spec/javascripts/todos_spec.js
View file @
283f968e
require
(
'
~/todos
'
)
;
require
(
'
~/lib/utils/common_utils
'
)
;
import
'
~/todos
'
;
import
'
~/lib/utils/common_utils
'
;
describe
(
'
Todos
'
,
()
=>
{
preloadFixtures
(
'
todos/todos.html.raw
'
);
...
...
spec/javascripts/u2f/authenticate_spec.js
View file @
283f968e
...
...
@@ -2,11 +2,11 @@
/* global MockU2FDevice */
/* global U2FAuthenticate */
require
(
'
~/u2f/authenticate
'
)
;
require
(
'
~/u2f/util
'
)
;
require
(
'
~/u2f/error
'
)
;
require
(
'
vendor/u2f
'
)
;
require
(
'
./mock_u2f_device
'
)
;
import
'
~/u2f/authenticate
'
;
import
'
~/u2f/util
'
;
import
'
~/u2f/error
'
;
import
'
vendor/u2f
'
;
import
'
./mock_u2f_device
'
;
(
function
()
{
describe
(
'
U2FAuthenticate
'
,
function
()
{
...
...
spec/javascripts/u2f/register_spec.js
View file @
283f968e
...
...
@@ -2,11 +2,11 @@
/* global MockU2FDevice */
/* global U2FRegister */
require
(
'
~/u2f/register
'
)
;
require
(
'
~/u2f/util
'
)
;
require
(
'
~/u2f/error
'
)
;
require
(
'
vendor/u2f
'
)
;
require
(
'
./mock_u2f_device
'
)
;
import
'
~/u2f/register
'
;
import
'
~/u2f/util
'
;
import
'
~/u2f/error
'
;
import
'
vendor/u2f
'
;
import
'
./mock_u2f_device
'
;
(
function
()
{
describe
(
'
U2FRegister
'
,
function
()
{
...
...
spec/javascripts/version_check_image_spec.js
View file @
283f968e
const
ClassSpecHelper
=
require
(
'
./helpers/class_spec_helper
'
);
const
VersionCheckImage
=
require
(
'
~/version_check_image
'
);
require
(
'
jquery
'
);
import
VersionCheckImage
from
'
~/version_check_image
'
;
import
ClassSpecHelper
from
'
./helpers/class_spec_helper
'
;
describe
(
'
VersionCheckImage
'
,
function
()
{
describe
(
'
bindErrorEvent
'
,
function
()
{
...
...
spec/javascripts/visibility_select_spec.js
View file @
283f968e
require
(
'
~/visibility_select
'
)
;
import
'
~/visibility_select
'
;
(()
=>
{
const
VisibilitySelect
=
gl
.
VisibilitySelect
;
...
...
spec/javascripts/zen_mode_spec.js
View file @
283f968e
...
...
@@ -3,7 +3,7 @@
/* global Mousetrap */
/* global ZenMode */
require
(
'
~/zen_mode
'
)
;
import
'
~/zen_mode
'
;
(
function
()
{
var
enterZen
,
escapeKeydown
,
exitZen
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment