Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
43898f8e
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,体验更适合开发者的 AI 搜索 >>
提交
43898f8e
编写于
11月 18, 2016
作者:
F
Filipa Lacerda
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix broken tests
上级
8765fcdc
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
11 addition
and
11 deletion
+11
-11
spec/javascripts/environments/environment_actions_spec.js.es6
.../javascripts/environments/environment_actions_spec.js.es6
+3
-3
spec/javascripts/environments/environment_item_spec.js.es6
spec/javascripts/environments/environment_item_spec.js.es6
+8
-8
未找到文件。
spec/javascripts/environments/environment_actions_spec.js.es6
浏览文件 @
43898f8e
...
...
@@ -12,11 +12,11 @@ describe('Actions Component', () => {
const actionsMock = [
{
name: 'bar',
play_
url
: 'https://gitlab.com/play',
play_
path
: 'https://gitlab.com/play',
},
{
name: 'foo',
play_
url
: '#',
play_
path
: '#',
},
];
...
...
@@ -32,6 +32,6 @@ describe('Actions Component', () => {
).toEqual(actionsMock.length);
expect(
component.$el.querySelector('.dropdown-menu li a').getAttribute('href')
).toEqual(actionsMock[0].play_
url
);
).toEqual(actionsMock[0].play_
path
);
});
});
spec/javascripts/environments/environment_item_spec.js.es6
浏览文件 @
43898f8e
...
...
@@ -74,7 +74,7 @@ describe('Environment item', () => {
sha: '500aabcb17c97bdcf2d0c410b70cb8556f0362dd',
ref: {
name: 'master',
ref_
url: 'http://localhost:3000/
root/ci-folders/tree/master',
ref_
path: '
root/ci-folders/tree/master',
},
tag: true,
'last?': true,
...
...
@@ -102,23 +102,23 @@ describe('Environment item', () => {
avatar_url: 'http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon',
web_url: 'http://localhost:3000/root',
},
commit_
url: 'http://localhost:3000
/root/ci-folders/tree/500aabcb17c97bdcf2d0c410b70cb8556f0362dd',
commit_
path: '
/root/ci-folders/tree/500aabcb17c97bdcf2d0c410b70cb8556f0362dd',
},
deployable: {
id: 1279,
name: 'deploy',
build_
url: 'http://localhost:3000
/root/ci-folders/builds/1279',
retry_
url: 'http://localhost:3000
/root/ci-folders/builds/1279/retry',
build_
path: '
/root/ci-folders/builds/1279',
retry_
path: '
/root/ci-folders/builds/1279/retry',
},
manual_actions: [
{
name: 'action',
play_
url: 'http://localhost:3000
/play',
play_
path: '
/play',
},
],
},
'stoppable?': true,
environment_
url: 'http://localhost:3000/
root/ci-folders/environments/31',
environment_
path: '
root/ci-folders/environments/31',
created_at: '2016-11-07T11:11:16.525Z',
updated_at: '2016-11-10T15:55:58.778Z',
};
...
...
@@ -161,13 +161,13 @@ describe('Environment item', () => {
it('Should link to build url provided', () => {
expect(
component.$el.querySelector('.build-link').getAttribute('href')
).toEqual(environment.last_deployment.deployable.build_
url
);
).toEqual(environment.last_deployment.deployable.build_
path
);
});
it('Should render deployable name and id', () => {
expect(
component.$el.querySelector('.build-link').getAttribute('href')
).toEqual(environment.last_deployment.deployable.build_
url
);
).toEqual(environment.last_deployment.deployable.build_
path
);
});
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录