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
cfa58afc
Commit
cfa58afc
authored
Nov 23, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve conflict in spec/javascripts/environments/environment_table_spec.js
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
dd337389
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
39 deletions
+13
-39
spec/javascripts/environments/environment_table_spec.js
spec/javascripts/environments/environment_table_spec.js
+13
-39
No files found.
spec/javascripts/environments/environment_table_spec.js
View file @
cfa58afc
import
Vue
from
'
vue
'
;
import
Vue
from
'
vue
'
;
import
environmentTableComp
from
'
~/environments/components/environments_table.vue
'
;
import
environmentTableComp
from
'
~/environments/components/environments_table.vue
'
;
<<<<<<<
HEAD
import
eventHub
from
'
~/environments/event_hub
'
;
import
eventHub
from
'
~/environments/event_hub
'
;
import
{
deployBoardMockData
}
from
'
./mock_data
'
;
import
{
deployBoardMockData
}
from
'
./mock_data
'
;
describe
(
'
Environment item
'
,
()
=>
{
let
EnvironmentTable
;
beforeEach
(()
=>
{
EnvironmentTable
=
Vue
.
extend
(
environmentTableComp
);
=======
import
mountComponent
from
'
../helpers/vue_mount_component_helper
'
;
import
mountComponent
from
'
../helpers/vue_mount_component_helper
'
;
describe
(
'
Environment table
'
,
()
=>
{
describe
(
'
Environment table
'
,
()
=>
{
...
@@ -22,7 +14,6 @@ describe('Environment table', () => {
...
@@ -22,7 +14,6 @@ describe('Environment table', () => {
afterEach
(()
=>
{
afterEach
(()
=>
{
vm
.
$destroy
();
vm
.
$destroy
();
>>>>>>>
ce
/
master
});
});
it
(
'
Should render a table
'
,
()
=>
{
it
(
'
Should render a table
'
,
()
=>
{
...
@@ -34,22 +25,11 @@ describe('Environment table', () => {
...
@@ -34,22 +25,11 @@ describe('Environment table', () => {
environment_path
:
'
url
'
,
environment_path
:
'
url
'
,
};
};
<<<<<<<
HEAD
const
component
=
new
EnvironmentTable
({
el
:
document
.
querySelector
(
'
.test-dom-element
'
),
propsData
:
{
environments
:
[
mockItem
],
canCreateDeployment
:
false
,
canReadEnvironment
:
true
,
},
}).
$mount
();
=======
vm
=
mountComponent
(
Component
,
{
vm
=
mountComponent
(
Component
,
{
environments
:
[
mockItem
],
environments
:
[
mockItem
],
canCreateDeployment
:
false
,
canCreateDeployment
:
false
,
canReadEnvironment
:
true
,
canReadEnvironment
:
true
,
});
});
>>>>>>>
ce
/
master
expect
(
vm
.
$el
.
getAttribute
(
'
class
'
)).
toContain
(
'
ci-table
'
);
expect
(
vm
.
$el
.
getAttribute
(
'
class
'
)).
toContain
(
'
ci-table
'
);
});
});
...
@@ -67,18 +47,15 @@ describe('Environment table', () => {
...
@@ -67,18 +47,15 @@ describe('Environment table', () => {
isEmptyDeployBoard
:
false
,
isEmptyDeployBoard
:
false
,
};
};
const
component
=
new
EnvironmentTable
({
vm
=
mountComponent
(
Component
,
{
el
:
document
.
querySelector
(
'
.test-dom-element
'
),
propsData
:
{
environments
:
[
mockItem
],
environments
:
[
mockItem
],
canCreateDeployment
:
tru
e
,
canCreateDeployment
:
fals
e
,
canReadEnvironment
:
true
,
canReadEnvironment
:
true
,
},
});
}).
$mount
();
expect
(
component
.
$el
.
querySelector
(
'
.js-deploy-board-row
'
)).
toBeDefined
();
expect
(
vm
.
$el
.
querySelector
(
'
.js-deploy-board-row
'
)).
toBeDefined
();
expect
(
expect
(
component
.
$el
.
querySelector
(
'
.deploy-board-icon i
'
).
classList
.
contains
(
'
fa-caret-right
'
),
vm
.
$el
.
querySelector
(
'
.deploy-board-icon i
'
).
classList
.
contains
(
'
fa-caret-right
'
),
).
toEqual
(
true
);
).
toEqual
(
true
);
});
});
...
@@ -105,15 +82,12 @@ describe('Environment table', () => {
...
@@ -105,15 +82,12 @@ describe('Environment table', () => {
expect
(
env
.
id
).
toEqual
(
mockItem
.
id
);
expect
(
env
.
id
).
toEqual
(
mockItem
.
id
);
});
});
const
component
=
new
EnvironmentTable
({
vm
=
mountComponent
(
Component
,
{
el
:
document
.
querySelector
(
'
.test-dom-element
'
),
propsData
:
{
environments
:
[
mockItem
],
environments
:
[
mockItem
],
canCreateDeployment
:
tru
e
,
canCreateDeployment
:
fals
e
,
canReadEnvironment
:
true
,
canReadEnvironment
:
true
,
},
});
}).
$mount
();
component
.
$el
.
querySelector
(
'
.deploy-board-icon
'
).
click
();
vm
.
$el
.
querySelector
(
'
.deploy-board-icon
'
).
click
();
});
});
});
});
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