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
6cf1bd0b
Commit
6cf1bd0b
authored
Jan 06, 2020
by
lauraMon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moves state setup to beforeEach
parent
7fea5e9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
spec/frontend/sentry_error_stack_trace/components/sentry_error_stack_trace_spec.js
...r_stack_trace/components/sentry_error_stack_trace_spec.js
+4
-2
No files found.
spec/frontend/sentry_error_stack_trace/components/sentry_error_stack_trace_spec.js
View file @
6cf1bd0b
...
...
@@ -69,15 +69,17 @@ describe('Sentry Error Stack Trace', () => {
});
describe
(
'
Stack trace
'
,
()
=>
{
it
(
'
should show stacktrace
'
,
()
=>
{
beforeEach
(
()
=>
{
store
.
state
.
details
.
loadingStacktrace
=
false
;
});
it
(
'
should show stacktrace
'
,
()
=>
{
mountComponent
({
stubs
:
{}
});
expect
(
wrapper
.
find
(
GlLoadingIcon
).
exists
()).
toBe
(
false
);
expect
(
wrapper
.
find
(
Stacktrace
).
exists
()).
toBe
(
true
);
});
it
(
'
should not show stacktrace if it does not exist
'
,
()
=>
{
store
.
state
.
details
.
loadingStacktrace
=
false
;
expect
(
wrapper
.
find
(
GlLoadingIcon
).
exists
()).
toBe
(
false
);
expect
(
wrapper
.
find
(
Stacktrace
).
exists
()).
toBe
(
false
);
});
...
...
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