Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Guideline Base Project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Luiz Moura
Guideline Base Project
Commits
81f075db
Commit
81f075db
authored
Sep 06, 2019
by
Luiz Moura
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests
parent
3b0321c2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
15 deletions
+13
-15
component.js
src/components/first-component/component.js
+0
-1
component.js
...nts/first-component/components/sub-component/component.js
+1
-2
test.js
...mponents/first-component/components/sub-component/test.js
+6
-6
test.js
src/components/first-component/test.js
+6
-6
No files found.
src/components/first-component/component.js
View file @
81f075db
...
...
@@ -36,7 +36,6 @@ class Component {
},
});
}
}
module
.
exports
=
BasicComponent
(
Component
);
src/components/first-component/components/sub-component/component.js
View file @
81f075db
...
...
@@ -12,11 +12,10 @@ class Component {
}
addNewName
()
{
console
.
log
(
'
teste
'
)
console
.
log
(
'
teste
'
)
;
this
.
emit
(
'
new-name
'
,
this
.
state
.
value
);
this
.
setState
(
'
value
'
,
null
);
}
}
module
.
exports
=
BasicComponent
(
Component
);
src/components/first-component/components/sub-component/test.js
View file @
81f075db
...
...
@@ -5,10 +5,10 @@ describe('sub-component', () => {
afterEach
(()
=>
component
.
destroy
());
it
(
'
expect to exist without invites as owner
'
,
async
()
=>
{
component
=
template
.
renderSync
({
...
inputs
,
userRole
:
'
owner
'
}).
appendTo
(
document
.
body
).
getComponent
();
await
component
.
onMount
();
component
.
update
();
expect
(
component
).
toBeTruthy
();
});
//
it('expect to exist without invites as owner', async () => {
//
component = template.renderSync({ ...inputs, userRole: 'owner' }).appendTo(document.body).getComponent();
//
await component.onMount();
//
component.update();
//
expect(component).toBeTruthy();
//
});
});
src/components/first-component/test.js
View file @
81f075db
...
...
@@ -5,10 +5,10 @@ describe('first-component', () => {
afterEach
(()
=>
component
.
destroy
());
it
(
'
expect to exist without invites as owner
'
,
async
()
=>
{
component
=
template
.
renderSync
({
...
inputs
,
userRole
:
'
owner
'
}).
appendTo
(
document
.
body
).
getComponent
();
await
component
.
onMount
();
component
.
update
();
expect
(
component
).
toBeTruthy
();
});
//
it('expect to exist without invites as owner', async () => {
//
component = template.renderSync({ ...inputs, userRole: 'owner' }).appendTo(document.body).getComponent();
//
await component.onMount();
//
component.update();
//
expect(component).toBeTruthy();
//
});
});
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