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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
8fa0aeb8
Commit
8fa0aeb8
authored
6 years ago
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix illegal references to "this" in module context
parent
0b932a7f
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
19 additions
and
19 deletions
+19
-19
spec/javascripts/behaviors/quick_submit_spec.js
spec/javascripts/behaviors/quick_submit_spec.js
+1
-1
spec/javascripts/blob/blob_file_dropzone_spec.js
spec/javascripts/blob/blob_file_dropzone_spec.js
+1
-1
spec/javascripts/commit/pipelines/pipelines_spec.js
spec/javascripts/commit/pipelines/pipelines_spec.js
+1
-1
spec/javascripts/filtered_search/filtered_search_manager_spec.js
...vascripts/filtered_search/filtered_search_manager_spec.js
+1
-1
spec/javascripts/helpers/class_spec_helper_spec.js
spec/javascripts/helpers/class_spec_helper_spec.js
+1
-1
spec/javascripts/lib/utils/csrf_token_spec.js
spec/javascripts/lib/utils/csrf_token_spec.js
+1
-1
spec/javascripts/monitoring/monitoring_store_spec.js
spec/javascripts/monitoring/monitoring_store_spec.js
+1
-1
spec/javascripts/pages/projects/pipeline_schedules/shared/components/pipeline_schedule_callout_spec.js
...dules/shared/components/pipeline_schedule_callout_spec.js
+1
-1
spec/javascripts/right_sidebar_spec.js
spec/javascripts/right_sidebar_spec.js
+1
-3
spec/javascripts/shortcuts_issuable_spec.js
spec/javascripts/shortcuts_issuable_spec.js
+1
-1
spec/javascripts/sidebar/sidebar_move_issue_spec.js
spec/javascripts/sidebar/sidebar_move_issue_spec.js
+1
-1
spec/javascripts/sidebar/sidebar_store_spec.js
spec/javascripts/sidebar/sidebar_store_spec.js
+1
-1
spec/javascripts/u2f/authenticate_spec.js
spec/javascripts/u2f/authenticate_spec.js
+1
-1
spec/javascripts/u2f/register_spec.js
spec/javascripts/u2f/register_spec.js
+1
-1
spec/javascripts/vue_mr_widget/components/states/mr_widget_ready_to_merge_spec.js
...widget/components/states/mr_widget_ready_to_merge_spec.js
+5
-3
No files found.
spec/javascripts/behaviors/quick_submit_spec.js
View file @
8fa0aeb8
import
$
from
'
jquery
'
;
import
'
~/behaviors/quick_submit
'
;
describe
(
'
Quick Submit behavior
'
,
()
=>
{
describe
(
'
Quick Submit behavior
'
,
function
()
{
const
keydownEvent
=
(
options
=
{
keyCode
:
13
,
metaKey
:
true
})
=>
$
.
Event
(
'
keydown
'
,
options
);
preloadFixtures
(
'
merge_requests/merge_request_with_task_list.html.raw
'
);
...
...
This diff is collapsed.
Click to expand it.
spec/javascripts/blob/blob_file_dropzone_spec.js
View file @
8fa0aeb8
import
$
from
'
jquery
'
;
import
BlobFileDropzone
from
'
~/blob/blob_file_dropzone
'
;
describe
(
'
BlobFileDropzone
'
,
()
=>
{
describe
(
'
BlobFileDropzone
'
,
function
()
{
preloadFixtures
(
'
blob/show.html.raw
'
);
beforeEach
(()
=>
{
...
...
This diff is collapsed.
Click to expand it.
spec/javascripts/commit/pipelines/pipelines_spec.js
View file @
8fa0aeb8
...
...
@@ -4,7 +4,7 @@ import axios from '~/lib/utils/axios_utils';
import
pipelinesTable
from
'
~/commit/pipelines/pipelines_table.vue
'
;
import
mountComponent
from
'
spec/helpers/vue_mount_component_helper
'
;
describe
(
'
Pipelines table in Commits and Merge requests
'
,
()
=>
{
describe
(
'
Pipelines table in Commits and Merge requests
'
,
function
()
{
const
jsonFixtureName
=
'
pipelines/pipelines.json
'
;
let
pipeline
;
let
PipelinesTable
;
...
...
This diff is collapsed.
Click to expand it.
spec/javascripts/filtered_search/filtered_search_manager_spec.js
View file @
8fa0aeb8
...
...
@@ -9,7 +9,7 @@ import FilteredSearchDropdownManager from '~/filtered_search/filtered_search_dro
import
FilteredSearchManager
from
'
~/filtered_search/filtered_search_manager
'
;
import
FilteredSearchSpecHelper
from
'
../helpers/filtered_search_spec_helper
'
;
describe
(
'
Filtered Search Manager
'
,
()
=>
{
describe
(
'
Filtered Search Manager
'
,
function
()
{
let
input
;
let
manager
;
let
tokensContainer
;
...
...
This diff is collapsed.
Click to expand it.
spec/javascripts/helpers/class_spec_helper_spec.js
View file @
8fa0aeb8
...
...
@@ -2,7 +2,7 @@
import
'
./class_spec_helper
'
;
describe
(
'
ClassSpecHelper
'
,
()
=>
{
describe
(
'
ClassSpecHelper
'
,
function
()
{
describe
(
'
itShouldBeAStaticMethod
'
,
()
=>
{
beforeEach
(()
=>
{
class
TestClass
{
...
...
This diff is collapsed.
Click to expand it.
spec/javascripts/lib/utils/csrf_token_spec.js
View file @
8fa0aeb8
import
csrf
from
'
~/lib/utils/csrf
'
;
describe
(
'
csrf
'
,
()
=>
{
describe
(
'
csrf
'
,
function
()
{
beforeEach
(()
=>
{
this
.
tokenKey
=
'
X-CSRF-Token
'
;
this
.
token
=
'
pH1cvjnP9grx2oKlhWEDvUZnJ8x2eXsIs1qzyHkF3DugSG5yTxR76CWeEZRhML2D1IeVB7NEW0t5l/axE4iJpQ==
'
;
...
...
This diff is collapsed.
Click to expand it.
spec/javascripts/monitoring/monitoring_store_spec.js
View file @
8fa0aeb8
import
MonitoringStore
from
'
~/monitoring/stores/monitoring_store
'
;
import
MonitoringMock
,
{
deploymentData
}
from
'
./mock_data
'
;
describe
(
'
MonitoringStore
'
,
()
=>
{
describe
(
'
MonitoringStore
'
,
function
()
{
this
.
store
=
new
MonitoringStore
();
this
.
store
.
storeMetrics
(
MonitoringMock
.
data
);
...
...
This diff is collapsed.
Click to expand it.
spec/javascripts/pages/projects/pipeline_schedules/shared/components/pipeline_schedule_callout_spec.js
View file @
8fa0aeb8
...
...
@@ -6,7 +6,7 @@ const PipelineSchedulesCalloutComponent = Vue.extend(PipelineSchedulesCallout);
const
cookieKey
=
'
pipeline_schedules_callout_dismissed
'
;
const
docsUrl
=
'
help/ci/scheduled_pipelines
'
;
describe
(
'
Pipeline Schedule Callout
'
,
()
=>
{
describe
(
'
Pipeline Schedule Callout
'
,
function
()
{
beforeEach
(()
=>
{
setFixtures
(
`
<div id='pipeline-schedules-callout' data-docs-url=
${
docsUrl
}
></div>
...
...
This diff is collapsed.
Click to expand it.
spec/javascripts/right_sidebar_spec.js
View file @
8fa0aeb8
...
...
@@ -9,8 +9,6 @@ import Sidebar from '~/right_sidebar';
(
function
()
{
var
$aside
,
$icon
,
$labelsIcon
,
$page
,
$toggle
,
assertSidebarState
;
this
.
sidebar
=
null
;
$aside
=
null
;
$toggle
=
null
;
...
...
@@ -43,7 +41,7 @@ import Sidebar from '~/right_sidebar';
beforeEach
(
function
()
{
loadFixtures
(
fixtureName
);
mock
=
new
MockAdapter
(
axios
);
this
.
sidebar
=
new
Sidebar
();
new
Sidebar
();
// eslint-disable-line no-new
$aside
=
$
(
'
.right-sidebar
'
);
$page
=
$
(
'
.layout-page
'
);
$icon
=
$aside
.
find
(
'
i
'
);
...
...
This diff is collapsed.
Click to expand it.
spec/javascripts/shortcuts_issuable_spec.js
View file @
8fa0aeb8
...
...
@@ -4,7 +4,7 @@ import ShortcutsIssuable from '~/shortcuts_issuable';
initCopyAsGFM
();
describe
(
'
ShortcutsIssuable
'
,
()
=>
{
describe
(
'
ShortcutsIssuable
'
,
function
()
{
const
fixtureName
=
'
merge_requests/diff_comment.html.raw
'
;
preloadFixtures
(
fixtureName
);
beforeEach
(()
=>
{
...
...
This diff is collapsed.
Click to expand it.
spec/javascripts/sidebar/sidebar_move_issue_spec.js
View file @
8fa0aeb8
...
...
@@ -7,7 +7,7 @@ import SidebarService from '~/sidebar/services/sidebar_service';
import
SidebarMoveIssue
from
'
~/sidebar/lib/sidebar_move_issue
'
;
import
Mock
from
'
./mock_data
'
;
describe
(
'
SidebarMoveIssue
'
,
()
=>
{
describe
(
'
SidebarMoveIssue
'
,
function
()
{
beforeEach
(()
=>
{
Vue
.
http
.
interceptors
.
push
(
Mock
.
sidebarMockInterceptor
);
this
.
mediator
=
new
SidebarMediator
(
Mock
.
mediator
);
...
...
This diff is collapsed.
Click to expand it.
spec/javascripts/sidebar/sidebar_store_spec.js
View file @
8fa0aeb8
...
...
@@ -31,7 +31,7 @@ const PARTICIPANT_LIST = [
{
...
PARTICIPANT
,
id
:
3
},
];
describe
(
'
Sidebar store
'
,
()
=>
{
describe
(
'
Sidebar store
'
,
function
()
{
beforeEach
(()
=>
{
this
.
store
=
new
SidebarStore
({
currentUser
:
{
...
...
This diff is collapsed.
Click to expand it.
spec/javascripts/u2f/authenticate_spec.js
View file @
8fa0aeb8
...
...
@@ -3,7 +3,7 @@ import U2FAuthenticate from '~/u2f/authenticate';
import
'
vendor/u2f
'
;
import
MockU2FDevice
from
'
./mock_u2f_device
'
;
describe
(
'
U2FAuthenticate
'
,
()
=>
{
describe
(
'
U2FAuthenticate
'
,
function
()
{
preloadFixtures
(
'
u2f/authenticate.html.raw
'
);
beforeEach
((
done
)
=>
{
...
...
This diff is collapsed.
Click to expand it.
spec/javascripts/u2f/register_spec.js
View file @
8fa0aeb8
...
...
@@ -3,7 +3,7 @@ import U2FRegister from '~/u2f/register';
import
'
vendor/u2f
'
;
import
MockU2FDevice
from
'
./mock_u2f_device
'
;
describe
(
'
U2FRegister
'
,
()
=>
{
describe
(
'
U2FRegister
'
,
function
()
{
preloadFixtures
(
'
u2f/register.html.raw
'
);
beforeEach
((
done
)
=>
{
...
...
This diff is collapsed.
Click to expand it.
spec/javascripts/vue_mr_widget/components/states/mr_widget_ready_to_merge_spec.js
View file @
8fa0aeb8
...
...
@@ -523,18 +523,20 @@ describe('ReadyToMerge', () => {
});
describe
(
'
when user can merge and can delete branch
'
,
()
=>
{
let
customVm
;
beforeEach
(()
=>
{
this
.
customVm
=
createComponent
({
customVm
=
createComponent
({
mr
:
{
canRemoveSourceBranch
:
true
},
});
});
it
(
'
isRemoveSourceBranchButtonDisabled should be false
'
,
()
=>
{
expect
(
this
.
customVm
.
isRemoveSourceBranchButtonDisabled
).
toBe
(
false
);
expect
(
customVm
.
isRemoveSourceBranchButtonDisabled
).
toBe
(
false
);
});
it
(
'
should be enabled in rendered output
'
,
()
=>
{
const
checkboxElement
=
this
.
customVm
.
$el
.
querySelector
(
'
#remove-source-branch-input
'
);
const
checkboxElement
=
customVm
.
$el
.
querySelector
(
'
#remove-source-branch-input
'
);
expect
(
checkboxElement
).
not
.
toBeNull
();
});
});
...
...
This diff is collapsed.
Click to expand it.
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