Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
96931b17
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,发现更多精彩内容 >>
提交
96931b17
编写于
1月 11, 2017
作者:
M
Mike Greiling
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
resolve all indent eslint violations
上级
b857b21f
变更
21
显示空白变更内容
内联
并排
Showing
21 changed file
with
331 addition
and
326 deletion
+331
-326
app/assets/javascripts/api.js
app/assets/javascripts/api.js
+4
-4
app/assets/javascripts/blob/template_selector.js.es6
app/assets/javascripts/blob/template_selector.js.es6
+82
-82
app/assets/javascripts/boards/boards_bundle.js.es6
app/assets/javascripts/boards/boards_bundle.js.es6
+3
-3
app/assets/javascripts/boards/components/board.js.es6
app/assets/javascripts/boards/components/board.js.es6
+3
-3
app/assets/javascripts/boards/components/new_list_dropdown.js.es6
...ts/javascripts/boards/components/new_list_dropdown.js.es6
+12
-12
app/assets/javascripts/boards/stores/boards_store.js.es6
app/assets/javascripts/boards/stores/boards_store.js.es6
+6
-6
app/assets/javascripts/boards/test_utils/simulate_drag.js
app/assets/javascripts/boards/test_utils/simulate_drag.js
+115
-116
app/assets/javascripts/diff_notes/components/jump_to_discussion.js.es6
...vascripts/diff_notes/components/jump_to_discussion.js.es6
+8
-8
app/assets/javascripts/diff_notes/services/resolve.js.es6
app/assets/javascripts/diff_notes/services/resolve.js.es6
+3
-3
app/assets/javascripts/gfm_auto_complete.js.es6
app/assets/javascripts/gfm_auto_complete.js.es6
+1
-1
app/assets/javascripts/layout_nav.js
app/assets/javascripts/layout_nav.js
+6
-5
app/assets/javascripts/notes.js
app/assets/javascripts/notes.js
+1
-1
app/assets/javascripts/project.js
app/assets/javascripts/project.js
+4
-4
app/assets/javascripts/project_new.js
app/assets/javascripts/project_new.js
+11
-9
app/assets/javascripts/search_autocomplete.js.es6
app/assets/javascripts/search_autocomplete.js.es6
+3
-3
spec/javascripts/boards/boards_store_spec.js.es6
spec/javascripts/boards/boards_store_spec.js.es6
+5
-5
spec/javascripts/gl_field_errors_spec.js.es6
spec/javascripts/gl_field_errors_spec.js.es6
+2
-2
spec/javascripts/graphs/stat_graph_contributors_graph_spec.js
.../javascripts/graphs/stat_graph_contributors_graph_spec.js
+5
-5
spec/javascripts/graphs/stat_graph_contributors_util_spec.js
spec/javascripts/graphs/stat_graph_contributors_util_spec.js
+24
-21
spec/javascripts/issue_spec.js
spec/javascripts/issue_spec.js
+13
-13
spec/javascripts/merge_request_widget_spec.js
spec/javascripts/merge_request_widget_spec.js
+20
-20
未找到文件。
app/assets/javascripts/api.js
浏览文件 @
96931b17
/* eslint-disable func-names, space-before-function-paren, quotes, object-shorthand, camelcase, no-var, comma-dangle, prefer-arrow-callback,
indent,
object-curly-spacing, quote-props, no-param-reassign, max-len */
/* eslint-disable func-names, space-before-function-paren, quotes, object-shorthand, camelcase, no-var, comma-dangle, prefer-arrow-callback, object-curly-spacing, quote-props, no-param-reassign, max-len */
(
function
()
{
(
function
()
{
var
Api
=
{
var
Api
=
{
...
...
app/assets/javascripts/blob/template_selector.js.es6
浏览文件 @
96931b17
/* eslint-disable
indent,
comma-dangle, object-shorthand, func-names, space-before-function-paren, arrow-parens, no-unused-vars, class-methods-use-this, no-var, consistent-return, prefer-const, no-param-reassign, space-in-parens, max-len */
/* eslint-disable comma-dangle, object-shorthand, func-names, space-before-function-paren, arrow-parens, no-unused-vars, class-methods-use-this, no-var, consistent-return, prefer-const, no-param-reassign, space-in-parens, max-len */
((global) => {
((global) => {
class TemplateSelector {
class TemplateSelector {
...
@@ -98,4 +98,4 @@
...
@@ -98,4 +98,4 @@
}
}
global.TemplateSelector = TemplateSelector;
global.TemplateSelector = TemplateSelector;
})(window.gl || ( window.gl = {}));
})(window.gl || ( window.gl = {}));
app/assets/javascripts/boards/boards_bundle.js.es6
浏览文件 @
96931b17
/* eslint-disable one-var,
indent,
quote-props, comma-dangle, space-before-function-paren */
/* eslint-disable one-var, quote-props, comma-dangle, space-before-function-paren */
/* global Vue */
/* global Vue */
/* global BoardService */
/* global BoardService */
...
@@ -16,8 +16,8 @@
...
@@ -16,8 +16,8 @@
//= require ./vue_resource_interceptor
//= require ./vue_resource_interceptor
$(() => {
$(() => {
const $boardApp = document.getElementById('board-app')
,
const $boardApp = document.getElementById('board-app')
;
Store = gl.issueBoards.BoardsStore;
const
Store = gl.issueBoards.BoardsStore;
window.gl = window.gl || {};
window.gl = window.gl || {};
...
...
app/assets/javascripts/boards/components/board.js.es6
浏览文件 @
96931b17
/* eslint-disable comma-dangle, space-before-function-paren, one-var,
indent,
radix */
/* eslint-disable comma-dangle, space-before-function-paren, one-var, radix */
/* global Vue */
/* global Vue */
/* global Sortable */
/* global Sortable */
...
@@ -88,8 +88,8 @@
...
@@ -88,8 +88,8 @@
gl.issueBoards.onEnd();
gl.issueBoards.onEnd();
if (e.newIndex !== undefined && e.oldIndex !== e.newIndex) {
if (e.newIndex !== undefined && e.oldIndex !== e.newIndex) {
const order = this.sortable.toArray()
,
const order = this.sortable.toArray()
;
list = Store.findList('id', parseInt(e.item.dataset.id));
const
list = Store.findList('id', parseInt(e.item.dataset.id));
this.$nextTick(() => {
this.$nextTick(() => {
Store.moveList(list, order);
Store.moveList(list, order);
...
...
app/assets/javascripts/boards/components/new_list_dropdown.js.es6
浏览文件 @
96931b17
/* eslint-disable comma-dangle, func-names, no-new, space-before-function-paren, one-var
, indent
*/
/* eslint-disable comma-dangle, func-names, no-new, space-before-function-paren, one-var */
(() => {
(() => {
window.gl = window.gl || {};
window.gl = window.gl || {};
...
@@ -32,14 +32,14 @@
...
@@ -32,14 +32,14 @@
});
});
},
},
renderRow (label) {
renderRow (label) {
const active = Store.findList('title', label.title)
,
const active = Store.findList('title', label.title)
;
$li = $('<li />'),
const $li = $('<li />');
$a = $('<a />', {
const
$a = $('<a />', {
class: (active ? `is-active js-board-list-${active.id}` : ''),
class: (active ? `is-active js-board-list-${active.id}` : ''),
text: label.title,
text: label.title,
href: '#'
href: '#'
}),
});
$labelColor = $('<span />', {
const
$labelColor = $('<span />', {
class: 'dropdown-label-box',
class: 'dropdown-label-box',
style: `background-color: ${label.color}`
style: `background-color: ${label.color}`
});
});
...
...
app/assets/javascripts/boards/stores/boards_store.js.es6
浏览文件 @
96931b17
/* eslint-disable comma-dangle, space-before-function-paren, one-var,
indent,
space-in-parens, no-shadow, radix, dot-notation, max-len */
/* eslint-disable comma-dangle, space-before-function-paren, one-var, space-in-parens, no-shadow, radix, dot-notation, max-len */
/* global Cookies */
/* global Cookies */
/* global List */
/* global List */
...
@@ -33,8 +33,8 @@
...
@@ -33,8 +33,8 @@
return list;
return list;
},
},
new (listObj) {
new (listObj) {
const list = this.addList(listObj)
,
const list = this.addList(listObj)
;
backlogList = this.findList('type', 'backlog', 'backlog');
const
backlogList = this.findList('type', 'backlog', 'backlog');
list
list
.save()
.save()
...
@@ -93,9 +93,9 @@
...
@@ -93,9 +93,9 @@
listFrom.update();
listFrom.update();
},
},
moveIssueToList (listFrom, listTo, issue, newIndex) {
moveIssueToList (listFrom, listTo, issue, newIndex) {
const issueTo = listTo.findIssue(issue.id)
,
const issueTo = listTo.findIssue(issue.id)
;
issueLists = issue.getLists(),
const issueLists = issue.getLists();
listLabels = issueLists.map( listIssue => listIssue.label );
const
listLabels = issueLists.map( listIssue => listIssue.label );
// Add to new lists issues if it doesn't already exist
// Add to new lists issues if it doesn't already exist
if (!issueTo) {
if (!issueTo) {
...
...
app/assets/javascripts/boards/test_utils/simulate_drag.js
浏览文件 @
96931b17
/* eslint-disable wrap-iife, func-names, strict,
indent, no-tabs,
no-var, vars-on-top, no-param-reassign, object-shorthand, no-shadow, comma-dangle, prefer-template, consistent-return, no-mixed-operators, no-unused-vars, object-curly-spacing, no-unused-expressions, prefer-arrow-callback, max-len */
/* eslint-disable wrap-iife, func-names, strict, no-var, vars-on-top, no-param-reassign, object-shorthand, no-shadow, comma-dangle, prefer-template, consistent-return, no-mixed-operators, no-unused-vars, object-curly-spacing, no-unused-expressions, prefer-arrow-callback, max-len */
(
function
()
{
(
function
()
{
'
use strict
'
;
'
use strict
'
;
...
@@ -113,7 +113,6 @@
...
@@ -113,7 +113,6 @@
};
};
}
}
// Export
// Export
window
.
simulateEvent
=
simulateEvent
;
window
.
simulateEvent
=
simulateEvent
;
window
.
simulateDrag
=
simulateDrag
;
window
.
simulateDrag
=
simulateDrag
;
...
...
app/assets/javascripts/diff_notes/components/jump_to_discussion.js.es6
浏览文件 @
96931b17
/* eslint-disable comma-dangle, object-shorthand, func-names, no-else-return, guard-for-in, no-restricted-syntax, one-var,
indent,
space-before-function-paren, no-lonely-if, no-continue, brace-style, max-len, quotes */
/* eslint-disable comma-dangle, object-shorthand, func-names, no-else-return, guard-for-in, no-restricted-syntax, one-var, space-before-function-paren, no-lonely-if, no-continue, brace-style, max-len, quotes */
/* global Vue */
/* global Vue */
/* global DiscussionMixins */
/* global DiscussionMixins */
/* global CommentsStore */
/* global CommentsStore */
...
@@ -46,13 +46,13 @@
...
@@ -46,13 +46,13 @@
},
},
methods: {
methods: {
jumpToNextUnresolvedDiscussion: function () {
jumpToNextUnresolvedDiscussion: function () {
let discussionsSelector
,
let discussionsSelector
;
discussionIdsInScope,
let discussionIdsInScope;
firstUnresolvedDiscussionId,
let firstUnresolvedDiscussionId;
nextUnresolvedDiscussionId,
let nextUnresolvedDiscussionId;
activeTab = window.mrTabs.currentAction,
let activeTab = window.mrTabs.currentAction;
hasDiscussionsToJumpTo = true,
let hasDiscussionsToJumpTo = true;
jumpToFirstDiscussion = !this.discussionId;
let
jumpToFirstDiscussion = !this.discussionId;
const discussionIdsForElements = function(elements) {
const discussionIdsForElements = function(elements) {
return elements.map(function() {
return elements.map(function() {
...
...
app/assets/javascripts/diff_notes/services/resolve.js.es6
浏览文件 @
96931b17
/* eslint-disable class-methods-use-this, one-var,
indent,
camelcase, no-new, comma-dangle, no-param-reassign, max-len */
/* eslint-disable class-methods-use-this, one-var, camelcase, no-new, comma-dangle, no-param-reassign, max-len */
/* global Vue */
/* global Vue */
/* global Flash */
/* global Flash */
/* global CommentsStore */
/* global CommentsStore */
...
@@ -32,8 +32,8 @@
...
@@ -32,8 +32,8 @@
}
}
toggleResolveForDiscussion(projectPath, mergeRequestId, discussionId) {
toggleResolveForDiscussion(projectPath, mergeRequestId, discussionId) {
const discussion = CommentsStore.state[discussionId]
,
const discussion = CommentsStore.state[discussionId]
;
isResolved = discussion.isResolved();
const
isResolved = discussion.isResolved();
let promise;
let promise;
if (isResolved) {
if (isResolved) {
...
...
app/assets/javascripts/gfm_auto_complete.js.es6
浏览文件 @
96931b17
/* eslint-disable func-names, space-before-function-paren, no-template-curly-in-string, comma-dangle, object-shorthand, quotes, dot-notation, no-else-return, one-var, no-var, no-underscore-dangle, one-var-declaration-per-line, no-param-reassign, no-useless-escape, prefer-template, consistent-return, wrap-iife, prefer-arrow-callback, camelcase, no-unused-vars, no-useless-return, vars-on-top,
indent,
no-multi-spaces, max-len */
/* eslint-disable func-names, space-before-function-paren, no-template-curly-in-string, comma-dangle, object-shorthand, quotes, dot-notation, no-else-return, one-var, no-var, no-underscore-dangle, one-var-declaration-per-line, no-param-reassign, no-useless-escape, prefer-template, consistent-return, wrap-iife, prefer-arrow-callback, camelcase, no-unused-vars, no-useless-return, vars-on-top, no-multi-spaces, max-len */
// Creates the variables for setting up GFM auto-completion
// Creates the variables for setting up GFM auto-completion
(function() {
(function() {
...
...
app/assets/javascripts/layout_nav.js
浏览文件 @
96931b17
/* eslint-disable func-names, space-before-function-paren, no-var, prefer-arrow-callback, no-unused-vars, one-var, one-var-declaration-per-line, indent, vars-on-top, max-len */
/* eslint-disable func-names, space-before-function-paren, no-var, prefer-arrow-callback, no-unused-vars, one-var, one-var-declaration-per-line, vars-on-top, max-len */
(
function
()
{
(
function
()
{
var
hideEndFade
;
var
hideEndFade
;
...
@@ -27,10 +28,10 @@
...
@@ -27,10 +28,10 @@
});
});
$scrollingTabs
.
each
(
function
()
{
$scrollingTabs
.
each
(
function
()
{
var
$this
=
$
(
this
)
,
var
$this
=
$
(
this
)
;
scrollingTabWidth
=
$this
.
width
(),
var
scrollingTabWidth
=
$this
.
width
();
$active
=
$this
.
find
(
'
.active
'
),
var
$active
=
$this
.
find
(
'
.active
'
);
activeWidth
=
$active
.
width
();
var
activeWidth
=
$active
.
width
();
if
(
$active
.
length
)
{
if
(
$active
.
length
)
{
var
offset
=
$active
.
offset
().
left
+
activeWidth
;
var
offset
=
$active
.
offset
().
left
+
activeWidth
;
...
...
app/assets/javascripts/notes.js
浏览文件 @
96931b17
/* eslint-disable no-restricted-properties, func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, no-use-before-define, camelcase, no-unused-expressions, quotes, max-len, one-var, one-var-declaration-per-line, default-case, prefer-template, consistent-return, no-alert, no-return-assign, no-param-reassign, prefer-arrow-callback, no-else-return, comma-dangle, no-new, brace-style, no-lonely-if, vars-on-top, no-unused-vars,
indent,
no-sequences, no-shadow, newline-per-chained-call, no-useless-escape, radix */
/* eslint-disable no-restricted-properties, func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, no-use-before-define, camelcase, no-unused-expressions, quotes, max-len, one-var, one-var-declaration-per-line, default-case, prefer-template, consistent-return, no-alert, no-return-assign, no-param-reassign, prefer-arrow-callback, no-else-return, comma-dangle, no-new, brace-style, no-lonely-if, vars-on-top, no-unused-vars, no-sequences, no-shadow, newline-per-chained-call, no-useless-escape, radix */
/* global Flash */
/* global Flash */
/* global GLForm */
/* global GLForm */
/* global Autosave */
/* global Autosave */
...
...
app/assets/javascripts/project.js
浏览文件 @
96931b17
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, quotes, consistent-return, no-new, prefer-arrow-callback, no-return-assign, one-var, one-var-declaration-per-line, object-shorthand, comma-dangle, no-else-return, newline-per-chained-call, no-shadow, vars-on-top,
indent,
prefer-template, max-len */
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, quotes, consistent-return, no-new, prefer-arrow-callback, no-return-assign, one-var, one-var-declaration-per-line, object-shorthand, comma-dangle, no-else-return, newline-per-chained-call, no-shadow, vars-on-top, prefer-template, max-len */
/* global Cookies */
/* global Cookies */
/* global Turbolinks */
/* global Turbolinks */
/* global ProjectSelect */
/* global ProjectSelect */
...
@@ -96,9 +96,9 @@
...
@@ -96,9 +96,9 @@
clicked
:
function
(
selected
,
$el
,
e
)
{
clicked
:
function
(
selected
,
$el
,
e
)
{
e
.
preventDefault
();
e
.
preventDefault
();
if
(
$
(
'
input[name="ref"]
'
).
length
)
{
if
(
$
(
'
input[name="ref"]
'
).
length
)
{
var
$form
=
$dropdown
.
closest
(
'
form
'
)
,
var
$form
=
$dropdown
.
closest
(
'
form
'
)
;
action
=
$form
.
attr
(
'
action
'
),
var
action
=
$form
.
attr
(
'
action
'
);
divider
=
action
.
indexOf
(
'
?
'
)
<
0
?
'
?
'
:
'
&
'
;
var
divider
=
action
.
indexOf
(
'
?
'
)
<
0
?
'
?
'
:
'
&
'
;
Turbolinks
.
visit
(
action
+
''
+
divider
+
''
+
$form
.
serialize
());
Turbolinks
.
visit
(
action
+
''
+
divider
+
''
+
$form
.
serialize
());
}
}
}
}
...
...
app/assets/javascripts/project_new.js
浏览文件 @
96931b17
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, no-unused-vars, one-var, indent, no-underscore-dangle, prefer-template, no-else-return, prefer-arrow-callback, radix, max-len */
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, no-unused-vars, one-var, no-underscore-dangle, prefer-template, no-else-return, prefer-arrow-callback, radix, max-len */
(
function
()
{
(
function
()
{
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
...
@@ -23,8 +24,9 @@
...
@@ -23,8 +24,9 @@
var
self
=
this
;
var
self
=
this
;
this
.
$selects
.
each
(
function
()
{
this
.
$selects
.
each
(
function
()
{
var
$select
=
$
(
this
),
var
$select
=
$
(
this
);
className
=
$select
.
data
(
'
field
'
).
replace
(
/_/g
,
'
-
'
)
var
className
=
$select
.
data
(
'
field
'
)
.
replace
(
/_/g
,
'
-
'
)
.
replace
(
'
access-level
'
,
'
feature
'
);
.
replace
(
'
access-level
'
,
'
feature
'
);
self
.
_showOrHide
(
$select
,
'
.
'
+
className
);
self
.
_showOrHide
(
$select
,
'
.
'
+
className
);
});
});
...
@@ -45,9 +47,9 @@
...
@@ -45,9 +47,9 @@
};
};
ProjectNew
.
prototype
.
toggleRepoVisibility
=
function
()
{
ProjectNew
.
prototype
.
toggleRepoVisibility
=
function
()
{
var
$repoAccessLevel
=
$
(
'
.js-repo-access-level select
'
)
,
var
$repoAccessLevel
=
$
(
'
.js-repo-access-level select
'
)
;
containerRegistry
=
document
.
querySelectorAll
(
'
.js-container-registry
'
)[
0
],
var
containerRegistry
=
document
.
querySelectorAll
(
'
.js-container-registry
'
)[
0
];
containerRegistryCheckbox
=
document
.
getElementById
(
'
project_container_registry_enabled
'
);
var
containerRegistryCheckbox
=
document
.
getElementById
(
'
project_container_registry_enabled
'
);
this
.
$repoSelects
.
find
(
"
option[value='
"
+
$repoAccessLevel
.
val
()
+
"
']
"
)
this
.
$repoSelects
.
find
(
"
option[value='
"
+
$repoAccessLevel
.
val
()
+
"
']
"
)
.
nextAll
()
.
nextAll
()
...
@@ -58,8 +60,8 @@
...
@@ -58,8 +60,8 @@
var
selectedVal
=
parseInt
(
$repoAccessLevel
.
val
());
var
selectedVal
=
parseInt
(
$repoAccessLevel
.
val
());
this
.
$repoSelects
.
each
(
function
()
{
this
.
$repoSelects
.
each
(
function
()
{
var
$this
=
$
(
this
)
,
var
$this
=
$
(
this
)
;
repoSelectVal
=
parseInt
(
$this
.
val
());
var
repoSelectVal
=
parseInt
(
$this
.
val
());
$this
.
find
(
'
option
'
).
show
();
$this
.
find
(
'
option
'
).
show
();
...
...
app/assets/javascripts/search_autocomplete.js.es6
浏览文件 @
96931b17
/* eslint-disable comma-dangle, no-return-assign, one-var, no-var, no-underscore-dangle, one-var-declaration-per-line, no-unused-vars, no-cond-assign, consistent-return, object-shorthand, prefer-arrow-callback, func-names, space-before-function-paren, prefer-template, quotes, class-methods-use-this, no-unused-expressions, no-sequences, wrap-iife, no-lonely-if, no-else-return, no-param-reassign, vars-on-top,
indent,
max-len */
/* eslint-disable comma-dangle, no-return-assign, one-var, no-var, no-underscore-dangle, one-var-declaration-per-line, no-unused-vars, no-cond-assign, consistent-return, object-shorthand, prefer-arrow-callback, func-names, space-before-function-paren, prefer-template, quotes, class-methods-use-this, no-unused-expressions, no-sequences, wrap-iife, no-lonely-if, no-else-return, no-param-reassign, vars-on-top, max-len */
((global) => {
((global) => {
const KEYCODE = {
const KEYCODE = {
...
...
spec/javascripts/boards/boards_store_spec.js.es6
浏览文件 @
96931b17
/* eslint-disable comma-dangle, one-var, no-unused-vars
, indent
*/
/* eslint-disable comma-dangle, one-var, no-unused-vars */
/* global Vue */
/* global Vue */
/* global BoardService */
/* global BoardService */
/* global boardsMockInterceptor */
/* global boardsMockInterceptor */
...
@@ -146,8 +146,8 @@ describe('Store', () => {
...
@@ -146,8 +146,8 @@ describe('Store', () => {
});
});
it('moves the position of lists', () => {
it('moves the position of lists', () => {
const listOne = gl.issueBoards.BoardsStore.addList(listObj)
,
const listOne = gl.issueBoards.BoardsStore.addList(listObj)
;
listTwo = gl.issueBoards.BoardsStore.addList(listObjDuplicate);
const
listTwo = gl.issueBoards.BoardsStore.addList(listObjDuplicate);
expect(gl.issueBoards.BoardsStore.state.lists.length).toBe(2);
expect(gl.issueBoards.BoardsStore.state.lists.length).toBe(2);
...
@@ -157,8 +157,8 @@ describe('Store', () => {
...
@@ -157,8 +157,8 @@ describe('Store', () => {
});
});
it('moves an issue from one list to another', (done) => {
it('moves an issue from one list to another', (done) => {
const listOne = gl.issueBoards.BoardsStore.addList(listObj)
,
const listOne = gl.issueBoards.BoardsStore.addList(listObj)
;
listTwo = gl.issueBoards.BoardsStore.addList(listObjDuplicate);
const
listTwo = gl.issueBoards.BoardsStore.addList(listObjDuplicate);
expect(gl.issueBoards.BoardsStore.state.lists.length).toBe(2);
expect(gl.issueBoards.BoardsStore.state.lists.length).toBe(2);
...
...
spec/javascripts/gl_field_errors_spec.js.es6
浏览文件 @
96931b17
/* eslint-disable space-before-function-paren, arrow-body-style
, indent
*/
/* eslint-disable space-before-function-paren, arrow-body-style */
//= require jquery
//= require jquery
//= require gl_field_errors
//= require gl_field_errors
...
...
spec/javascripts/graphs/stat_graph_contributors_graph_spec.js
浏览文件 @
96931b17
/* eslint-disable quotes,
indent,
object-curly-spacing, jasmine/no-suite-dupes, vars-on-top, no-var, spaced-comment, max-len */
/* eslint-disable quotes, object-curly-spacing, jasmine/no-suite-dupes, vars-on-top, no-var, spaced-comment, max-len */
/* global d3 */
/* global d3 */
/* global ContributorsGraph */
/* global ContributorsGraph */
/* global ContributorsMasterGraph */
/* global ContributorsMasterGraph */
...
...
spec/javascripts/graphs/stat_graph_contributors_util_spec.js
浏览文件 @
96931b17
/* eslint-disable quotes, no-var, camelcase, object-curly-spacing,
indent,
object-property-newline, comma-dangle, comma-spacing, spaced-comment, max-len, key-spacing, vars-on-top, quote-props, no-multi-spaces */
/* eslint-disable quotes, no-var, camelcase, object-curly-spacing, object-property-newline, comma-dangle, comma-spacing, spaced-comment, max-len, key-spacing, vars-on-top, quote-props, no-multi-spaces */
/* global ContributorsStatGraphUtil */
/* global ContributorsStatGraphUtil */
//= require graphs/stat_graph_contributors_util
//= require graphs/stat_graph_contributors_util
...
@@ -129,8 +129,10 @@ describe("ContributorsStatGraphUtil", function () {
...
@@ -129,8 +129,10 @@ describe("ContributorsStatGraphUtil", function () {
describe
(
"
#get_total_data
"
,
function
()
{
describe
(
"
#get_total_data
"
,
function
()
{
it
(
"
returns the collection sorted via specified field
"
,
function
()
{
it
(
"
returns the collection sorted via specified field
"
,
function
()
{
var
fake_parsed_log
=
{
var
fake_parsed_log
=
{
total
:
[{
date
:
"
2013-05-09
"
,
additions
:
471
,
deletions
:
0
,
commits
:
1
},
total
:
[
{
date
:
"
2013-05-08
"
,
additions
:
54
,
deletions
:
7
,
commits
:
3
}],
{
date
:
"
2013-05-09
"
,
additions
:
471
,
deletions
:
0
,
commits
:
1
},
{
date
:
"
2013-05-08
"
,
additions
:
54
,
deletions
:
7
,
commits
:
3
}
],
by_author
:[
by_author
:[
{
{
author
:
"
Karlo Soriano
"
,
author
:
"
Karlo Soriano
"
,
...
@@ -140,7 +142,8 @@ describe("ContributorsStatGraphUtil", function () {
...
@@ -140,7 +142,8 @@ describe("ContributorsStatGraphUtil", function () {
author
:
"
Dmitriy Zaporozhets
"
,
author
:
"
Dmitriy Zaporozhets
"
,
"
2013-05-08
"
:
{
date
:
"
2013-05-08
"
,
additions
:
54
,
deletions
:
7
,
commits
:
3
}
"
2013-05-08
"
:
{
date
:
"
2013-05-08
"
,
additions
:
54
,
deletions
:
7
,
commits
:
3
}
}
}
]};
]
};
var
correct_total_data
=
[{
date
:
"
2013-05-08
"
,
commits
:
3
},
var
correct_total_data
=
[{
date
:
"
2013-05-08
"
,
commits
:
3
},
{
date
:
"
2013-05-09
"
,
commits
:
1
}];
{
date
:
"
2013-05-09
"
,
commits
:
1
}];
expect
(
ContributorsStatGraphUtil
.
get_total_data
(
fake_parsed_log
,
"
commits
"
)).
toEqual
(
correct_total_data
);
expect
(
ContributorsStatGraphUtil
.
get_total_data
(
fake_parsed_log
,
"
commits
"
)).
toEqual
(
correct_total_data
);
...
...
spec/javascripts/issue_spec.js
浏览文件 @
96931b17
/* eslint-disable space-before-function-paren, no-var, one-var, one-var-declaration-per-line, no-use-before-define,
indent,
comma-dangle, max-len */
/* eslint-disable space-before-function-paren, no-var, one-var, one-var-declaration-per-line, no-use-before-define, comma-dangle, max-len */
/* global Issue */
/* global Issue */
/*= require lib/utils/text_utility */
/*= require lib/utils/text_utility */
...
...
spec/javascripts/merge_request_widget_spec.js
浏览文件 @
96931b17
/* eslint-disable space-before-function-paren, quotes, comma-dangle, dot-notation,
indent,
quote-props, no-var, max-len */
/* eslint-disable space-before-function-paren, quotes, comma-dangle, dot-notation, quote-props, no-var, max-len */
/*= require merge_request_widget */
/*= require merge_request_widget */
/*= require lib/utils/datetime_utility */
/*= require lib/utils/datetime_utility */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录