Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
8fa0aeb8
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
8fa0aeb8
编写于
3月 07, 2018
作者:
M
Mike Greiling
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix illegal references to "this" in module context
上级
0b932a7f
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
19 addition
and
19 deletion
+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
未找到文件。
spec/javascripts/behaviors/quick_submit_spec.js
浏览文件 @
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
'
);
...
...
spec/javascripts/blob/blob_file_dropzone_spec.js
浏览文件 @
8fa0aeb8
import
$
from
'
jquery
'
;
import
BlobFileDropzone
from
'
~/blob/blob_file_dropzone
'
;
describe
(
'
BlobFileDropzone
'
,
()
=>
{
describe
(
'
BlobFileDropzone
'
,
function
()
{
preloadFixtures
(
'
blob/show.html.raw
'
);
beforeEach
(()
=>
{
...
...
spec/javascripts/commit/pipelines/pipelines_spec.js
浏览文件 @
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
;
...
...
spec/javascripts/filtered_search/filtered_search_manager_spec.js
浏览文件 @
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
;
...
...
spec/javascripts/helpers/class_spec_helper_spec.js
浏览文件 @
8fa0aeb8
...
...
@@ -2,7 +2,7 @@
import
'
./class_spec_helper
'
;
describe
(
'
ClassSpecHelper
'
,
()
=>
{
describe
(
'
ClassSpecHelper
'
,
function
()
{
describe
(
'
itShouldBeAStaticMethod
'
,
()
=>
{
beforeEach
(()
=>
{
class
TestClass
{
...
...
spec/javascripts/lib/utils/csrf_token_spec.js
浏览文件 @
8fa0aeb8
import
csrf
from
'
~/lib/utils/csrf
'
;
describe
(
'
csrf
'
,
()
=>
{
describe
(
'
csrf
'
,
function
()
{
beforeEach
(()
=>
{
this
.
tokenKey
=
'
X-CSRF-Token
'
;
this
.
token
=
'
pH1cvjnP9grx2oKlhWEDvUZnJ8x2eXsIs1qzyHkF3DugSG5yTxR76CWeEZRhML2D1IeVB7NEW0t5l/axE4iJpQ==
'
;
...
...
spec/javascripts/monitoring/monitoring_store_spec.js
浏览文件 @
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
);
...
...
spec/javascripts/pages/projects/pipeline_schedules/shared/components/pipeline_schedule_callout_spec.js
浏览文件 @
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>
...
...
spec/javascripts/right_sidebar_spec.js
浏览文件 @
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
'
);
...
...
spec/javascripts/shortcuts_issuable_spec.js
浏览文件 @
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
(()
=>
{
...
...
spec/javascripts/sidebar/sidebar_move_issue_spec.js
浏览文件 @
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
);
...
...
spec/javascripts/sidebar/sidebar_store_spec.js
浏览文件 @
8fa0aeb8
...
...
@@ -31,7 +31,7 @@ const PARTICIPANT_LIST = [
{
...
PARTICIPANT
,
id
:
3
},
];
describe
(
'
Sidebar store
'
,
()
=>
{
describe
(
'
Sidebar store
'
,
function
()
{
beforeEach
(()
=>
{
this
.
store
=
new
SidebarStore
({
currentUser
:
{
...
...
spec/javascripts/u2f/authenticate_spec.js
浏览文件 @
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
)
=>
{
...
...
spec/javascripts/u2f/register_spec.js
浏览文件 @
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
)
=>
{
...
...
spec/javascripts/vue_mr_widget/components/states/mr_widget_ready_to_merge_spec.js
浏览文件 @
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
();
});
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录