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
000037cb
Commit
000037cb
authored
Apr 07, 2017
by
Sean McGivern
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'service-desk-fe-updates-v1' into 'master'
Service Desk FE updates v1 See merge request !1604
parents
e4cb7156
07a7d88e
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
178 additions
and
44 deletions
+178
-44
app/assets/javascripts/projects/settings_service_desk/components/service_desk_setting.js
.../settings_service_desk/components/service_desk_setting.js
+19
-3
app/assets/javascripts/projects/settings_service_desk/service_desk_root.js
...ripts/projects/settings_service_desk/service_desk_root.js
+7
-3
app/assets/javascripts/projects/settings_service_desk/stores/service_desk_store.js
...ojects/settings_service_desk/stores/service_desk_store.js
+5
-0
app/mailers/emails/ee/service_desk.rb
app/mailers/emails/ee/service_desk.rb
+6
-0
app/views/layouts/service_desk.html.haml
app/views/layouts/service_desk.html.haml
+15
-0
app/views/notify/service_desk_new_note_email.html.haml
app/views/notify/service_desk_new_note_email.html.haml
+5
-0
app/views/notify/service_desk_thank_you_email.html.haml
app/views/notify/service_desk_thank_you_email.html.haml
+2
-0
app/views/projects/edit.html.haml
app/views/projects/edit.html.haml
+3
-2
spec/features/projects/settings/ee/service_desk_setting_spec.rb
...eatures/projects/settings/ee/service_desk_setting_spec.rb
+53
-15
spec/javascripts/projects/settings_service_desk/components/service_desk_setting_spec.js
...ings_service_desk/components/service_desk_setting_spec.js
+41
-17
spec/javascripts/projects/settings_service_desk/services/service_desk_service_spec.js
...ttings_service_desk/services/service_desk_service_spec.js
+4
-4
spec/javascripts/projects/settings_service_desk/stores/service_desk_store_spec.js
...s/settings_service_desk/stores/service_desk_store_spec.js
+18
-0
No files found.
app/assets/javascripts/projects/settings_service_desk/components/service_desk_setting.js
View file @
000037cb
...
@@ -18,6 +18,11 @@ export default {
...
@@ -18,6 +18,11 @@ export default {
required
:
false
,
required
:
false
,
default
:
null
,
default
:
null
,
},
},
isInstanceAdmin
:
{
type
:
Boolean
,
required
:
false
,
default
:
false
,
},
},
},
methods
:
{
methods
:
{
...
@@ -32,15 +37,23 @@ export default {
...
@@ -32,15 +37,23 @@ export default {
<div class="checkbox">
<div class="checkbox">
<label for="service-desk-enabled-checkbox">
<label for="service-desk-enabled-checkbox">
<input
<input
ref="enabled-checkbox"
type="checkbox"
type="checkbox"
id="service-desk-enabled-checkbox"
id="service-desk-enabled-checkbox"
:disabled="!isInstanceAdmin"
:checked="isEnabled"
:checked="isEnabled"
@change="onCheckboxToggle($event)">
@change="onCheckboxToggle($event)">
<span class="descr">
<span class="descr">
Activate
service d
esk
Activate
Service D
esk
</span>
</span>
</label>
</label>
</div>
</div>
<p
ref="only-instance-admin-activate-message"
v-if="!isInstanceAdmin"
class="settings-message">
Only instance admins can activate/deactivate Service Desk
</p>
<template v-if="isEnabled">
<template v-if="isEnabled">
<div
<div
class="panel-slim panel-default">
class="panel-slim panel-default">
...
@@ -55,7 +68,8 @@ export default {
...
@@ -55,7 +68,8 @@ export default {
An error occurred while fetching the incoming email
An error occurred while fetching the incoming email
</template>
</template>
<template v-else-if="incomingEmail">
<template v-else-if="incomingEmail">
<span ref="service-desk-incoming-email">
<span
ref="service-desk-incoming-email">
{{ incomingEmail }}
{{ incomingEmail }}
</span>
</span>
<button
<button
...
@@ -74,7 +88,9 @@ export default {
...
@@ -74,7 +88,9 @@ export default {
</template>
</template>
</div>
</div>
</div>
</div>
<p class="settings-message">
<p
ref="recommend-protect-email-from-spam-message"
class="settings-message">
We recommend you protect the external support email address.
We recommend you protect the external support email address.
Unblocked email spam would result in many spam issues being created,
Unblocked email spam would result in many spam issues being created,
and may disrupt your GitLab service.
and may disrupt your GitLab service.
...
...
app/assets/javascripts/projects/settings_service_desk/service_desk_root.js
View file @
000037cb
...
@@ -8,14 +8,17 @@ import eventHub from './event_hub';
...
@@ -8,14 +8,17 @@ import eventHub from './event_hub';
class
ServiceDeskRoot
{
class
ServiceDeskRoot
{
constructor
(
wrapperElement
)
{
constructor
(
wrapperElement
)
{
this
.
wrapperElement
=
wrapperElement
;
this
.
wrapperElement
=
wrapperElement
;
const
isEnabled
=
t
his
.
wrapperElement
.
dataset
.
enabled
!==
undefined
&&
const
isEnabled
=
t
ypeof
this
.
wrapperElement
.
dataset
.
enabled
!==
'
undefined
'
&&
this
.
wrapperElement
.
dataset
.
enabled
!==
'
false
'
;
this
.
wrapperElement
.
dataset
.
enabled
!==
'
false
'
;
const
incomingEmail
=
this
.
wrapperElement
.
dataset
.
incomingEmail
;
const
incomingEmail
=
this
.
wrapperElement
.
dataset
.
incomingEmail
;
const
endpoint
=
this
.
wrapperElement
.
dataset
.
endpoint
;
const
endpoint
=
this
.
wrapperElement
.
dataset
.
endpoint
;
const
isInstanceAdmin
=
typeof
this
.
wrapperElement
.
dataset
.
isInstanceAdmin
!==
'
undefined
'
&&
this
.
wrapperElement
.
dataset
.
isInstanceAdmin
!==
'
false
'
;
this
.
store
=
new
ServiceDeskStore
({
this
.
store
=
new
ServiceDeskStore
({
isEnabled
,
isEnabled
,
incomingEmail
,
incomingEmail
,
isInstanceAdmin
,
});
});
this
.
service
=
new
ServiceDeskService
(
endpoint
);
this
.
service
=
new
ServiceDeskService
(
endpoint
);
}
}
...
@@ -37,7 +40,7 @@ class ServiceDeskRoot {
...
@@ -37,7 +40,7 @@ class ServiceDeskRoot {
}
}
unbindEvents
()
{
unbindEvents
()
{
eventHub
.
$o
n
(
'
serviceDeskEnabledCheckboxToggled
'
,
this
.
onEnableToggledWrapper
);
eventHub
.
$o
ff
(
'
serviceDeskEnabledCheckboxToggled
'
,
this
.
onEnableToggledWrapper
);
}
}
render
()
{
render
()
{
...
@@ -48,7 +51,8 @@ class ServiceDeskRoot {
...
@@ -48,7 +51,8 @@ class ServiceDeskRoot {
<service-desk-setting
<service-desk-setting
:isEnabled="isEnabled"
:isEnabled="isEnabled"
:incomingEmail="incomingEmail"
:incomingEmail="incomingEmail"
:fetchError="fetchError" />
:fetchError="fetchError"
:isInstanceAdmin="isInstanceAdmin" />
`
,
`
,
components
:
{
components
:
{
'
service-desk-setting
'
:
ServiceDeskSetting
,
'
service-desk-setting
'
:
ServiceDeskSetting
,
...
...
app/assets/javascripts/projects/settings_service_desk/stores/service_desk_store.js
View file @
000037cb
...
@@ -4,6 +4,7 @@ class ServiceDeskStore {
...
@@ -4,6 +4,7 @@ class ServiceDeskStore {
isEnabled
:
false
,
isEnabled
:
false
,
incomingEmail
:
''
,
incomingEmail
:
''
,
fetchError
:
null
,
fetchError
:
null
,
isInstanceAdmin
:
false
,
},
initialState
);
},
initialState
);
}
}
...
@@ -18,6 +19,10 @@ class ServiceDeskStore {
...
@@ -18,6 +19,10 @@ class ServiceDeskStore {
setFetchError
(
value
)
{
setFetchError
(
value
)
{
this
.
state
.
fetchError
=
value
;
this
.
state
.
fetchError
=
value
;
}
}
setIsInstanceAdmin
(
value
)
{
this
.
state
.
isInstanceAdmin
=
value
;
}
}
}
export
default
ServiceDeskStore
;
export
default
ServiceDeskStore
;
app/mailers/emails/ee/service_desk.rb
View file @
000037cb
module
Emails
module
Emails
module
EE
module
EE
module
ServiceDesk
module
ServiceDesk
extend
ActiveSupport
::
Concern
included
do
layout
'service_desk'
,
only:
[
:service_desk_thank_you_email
,
:service_desk_new_note_email
]
end
def
service_desk_thank_you_email
(
issue_id
)
def
service_desk_thank_you_email
(
issue_id
)
setup_service_desk_mail
(
issue_id
)
setup_service_desk_mail
(
issue_id
)
...
...
app/views/layouts/service_desk.html.haml
0 → 100644
View file @
000037cb
%html
{
lang:
"en"
}
%head
%meta
{
content:
"text/html; charset=utf-8"
,
"http-equiv"
=>
"Content-Type"
}
%title
GitLab
=
stylesheet_link_tag
'notify'
=
yield
:head
%body
.content
=
yield
.footer
{
style:
"margin-top: 10px;"
}
%p
—
%br
=
link_to
"Unsubscribe"
,
@sent_notification_url
app/views/notify/service_desk_new_note_email.html.haml
0 → 100644
View file @
000037cb
-
if
current_application_settings
.
email_author_in_body
%div
#{
link_to
@note
.
author_name
,
user_url
(
@note
.
author
)
}
wrote:
%div
=
markdown
(
@note
.
note
,
pipeline: :email
,
author:
@note
.
author
)
app/views/notify/service_desk_thank_you_email.html.haml
0 → 100644
View file @
000037cb
%p
Thank you for your support request! We are tracking your request as ticket ##{@issue.iid}, and will respond as soon as we can.
app/views/projects/edit.html.haml
View file @
000037cb
...
@@ -131,10 +131,11 @@
...
@@ -131,10 +131,11 @@
%fieldset
.js-service-desk-setting-wrapper.features.append-bottom-default
%fieldset
.js-service-desk-setting-wrapper.features.append-bottom-default
%h5
.prepend-top-0
%h5
.prepend-top-0
Service Desk
Service Desk
=
link_to
icon
(
'question-circle'
),
help_page_path
(
"TODO"
)
=
link_to
icon
(
'question-circle'
),
help_page_path
(
'user/project/service_desk'
)
.js-service-desk-setting-root
{
data:
{
endpoint:
namespace_project_service_desk_path
(
@project
.
namespace
,
@project
),
.js-service-desk-setting-root
{
data:
{
endpoint:
namespace_project_service_desk_path
(
@project
.
namespace
,
@project
),
enabled:
@project
.
service_desk_enabled
,
enabled:
@project
.
service_desk_enabled
,
incoming_email:
(
@project
.
service_desk_address
if
@project
.
service_desk_enabled
)
}
}
incoming_email:
(
@project
.
service_desk_address
if
@project
.
service_desk_enabled
),
is_instance_admin:
current_user
.
is_admin?
}
}
%hr
%hr
%fieldset
.features.append-bottom-default
%fieldset
.features.append-bottom-default
...
...
spec/features/projects/settings/ee/service_desk_setting_spec.rb
View file @
000037cb
...
@@ -3,25 +3,63 @@ require 'spec_helper'
...
@@ -3,25 +3,63 @@ require 'spec_helper'
describe
'Service Desk Setting'
,
js:
true
,
feature:
true
do
describe
'Service Desk Setting'
,
js:
true
,
feature:
true
do
include
WaitForAjax
include
WaitForAjax
let
(
:project
)
{
create
(
:project_empty_repo
,
:private
)
}
describe
'as project master/admin'
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project_empty_repo
,
:private
)
}
let
(
:user
)
{
create
(
:user
)
}
before
do
before
do
project
.
add_master
(
user
)
project
.
add_master
(
user
)
login_as
(
user
)
login_as
(
user
)
allow_any_instance_of
(
License
).
to
receive
(
:add_on?
).
and_call_original
allow_any_instance_of
(
License
).
to
receive
(
:add_on?
).
and_call_original
allow_any_instance_of
(
License
).
to
receive
(
:add_on?
).
with
(
'GitLab_ServiceDesk'
)
{
true
}
allow_any_instance_of
(
License
).
to
receive
(
:add_on?
).
with
(
'GitLab_ServiceDesk'
)
{
true
}
end
visit
edit_namespace_project_path
(
project
.
namespace
,
project
)
describe
'when disabled'
do
end
before
do
visit
edit_namespace_project_path
(
project
.
namespace
,
project
)
end
it
'shows disabled activation checkbox'
do
expect
(
page
).
to
have_selector
(
"#service-desk-enabled-checkbox[disabled]"
)
end
end
describe
'when enabled'
do
before
do
project
.
update
(
service_desk_enabled:
true
)
visit
edit_namespace_project_path
(
project
.
namespace
,
project
)
end
it
'shows disabled activation checkbox'
do
expect
(
page
).
to
have_selector
(
"#service-desk-enabled-checkbox[disabled]"
)
end
it
'shows service desk activation checkbox'
do
it
'shows service_desk_address when enabled'
do
expect
(
page
).
to
have_selector
(
"#service-desk-enabled-checkbox"
)
expect
(
find
(
'.js-service-desk-setting-wrapper .panel-body'
)).
to
have_content
(
project
.
service_desk_address
)
end
end
end
end
it
'shows incoming email after activating'
do
describe
'as instance admin'
do
find
(
"#service-desk-enabled-checkbox"
).
click
let
(
:project
)
{
create
(
:project_empty_repo
,
:private
)
}
wait_for_ajax
let
(
:user
)
{
create
(
:user
,
:admin
)
}
expect
(
find
(
'.js-service-desk-setting-wrapper .panel-body'
)).
to
have_content
(
project
.
service_desk_address
)
before
do
login_as
(
user
)
allow_any_instance_of
(
License
).
to
receive
(
:add_on?
).
and_call_original
allow_any_instance_of
(
License
).
to
receive
(
:add_on?
).
with
(
'GitLab_ServiceDesk'
)
{
true
}
visit
edit_namespace_project_path
(
project
.
namespace
,
project
)
end
it
'shows activation checkbox'
do
expect
(
page
).
to
have_selector
(
"#service-desk-enabled-checkbox"
)
end
it
'shows incoming email after activating'
do
find
(
"#service-desk-enabled-checkbox"
).
click
wait_for_ajax
expect
(
find
(
'.js-service-desk-setting-wrapper .panel-body'
)).
to
have_content
(
project
.
service_desk_address
)
end
end
end
end
end
spec/javascripts/projects/settings_service_desk/components/service_desk_setting_spec.js
View file @
000037cb
...
@@ -23,25 +23,49 @@ describe('ServiceDeskSetting', () => {
...
@@ -23,25 +23,49 @@ describe('ServiceDeskSetting', () => {
let
el
;
let
el
;
describe
(
'
only isEnabled
'
,
()
=>
{
describe
(
'
only isEnabled
'
,
()
=>
{
beforeEach
(()
=>
{
describe
(
'
as project admin
'
,
()
=>
{
vm
=
createComponent
({
beforeEach
(()
=>
{
isEnabled
:
true
,
vm
=
createComponent
({
isEnabled
:
true
,
});
el
=
vm
.
$el
;
});
});
el
=
vm
.
$el
;
});
it
(
'
see main panel with the email info
'
,
()
=>
{
it
(
'
should see disabled activation checkbox
'
,
()
=>
{
expect
(
el
.
querySelector
(
'
.panel
'
)).
toBeDefined
(
);
expect
(
vm
.
$refs
[
'
enabled-checkbox
'
].
getAttribute
(
'
disabled
'
)).
toEqual
(
'
disabled
'
);
});
});
it
(
'
see loading spinner
'
,
()
=>
{
it
(
'
should see only instance admin can activate/deactivate message
'
,
()
=>
{
expect
(
el
.
querySelector
(
'
.fa-spinner
'
)).
toBeDefined
();
expect
(
vm
.
$refs
[
'
only-instance-admin-activate-message
'
]).
toBeDefined
();
expect
(
el
.
querySelector
(
'
.fa-exclamation-circle
'
)).
toBeNull
();
});
expect
(
vm
.
$refs
[
'
service-desk-incoming-email
'
]).
toBeUndefined
();
it
(
'
should see main panel with the email info
'
,
()
=>
{
expect
(
el
.
querySelector
(
'
.panel
'
)).
toBeDefined
();
});
it
(
'
should see loading spinner
'
,
()
=>
{
expect
(
el
.
querySelector
(
'
.fa-spinner
'
)).
toBeDefined
();
expect
(
el
.
querySelector
(
'
.fa-exclamation-circle
'
)).
toBeNull
();
expect
(
vm
.
$refs
[
'
service-desk-incoming-email
'
]).
toBeUndefined
();
});
it
(
'
should see warning message
'
,
()
=>
{
expect
(
vm
.
$refs
[
'
recommend-protect-email-from-spam-message
'
]).
toBeDefined
();
});
});
});
it
(
'
see warning message
'
,
()
=>
{
describe
(
'
as instance admin
'
,
()
=>
{
expect
(
el
.
querySelector
(
'
.settings-message
'
)).
toBeDefined
();
beforeEach
(()
=>
{
vm
=
createComponent
({
isEnabled
:
true
,
isInstanceAdmin
:
true
,
});
el
=
vm
.
$el
;
});
it
(
'
should see activation checkbox (not disabled)
'
,
()
=>
{
expect
(
vm
.
$refs
[
'
enabled-checkbox
'
].
getAttribute
(
'
disabled
'
)).
toEqual
(
null
);
});
});
});
});
});
...
@@ -54,7 +78,7 @@ describe('ServiceDeskSetting', () => {
...
@@ -54,7 +78,7 @@ describe('ServiceDeskSetting', () => {
el
=
vm
.
$el
;
el
=
vm
.
$el
;
});
});
it
(
'
see email
'
,
()
=>
{
it
(
'
s
hould s
ee email
'
,
()
=>
{
expect
(
vm
.
$refs
[
'
service-desk-incoming-email
'
].
textContent
.
trim
()).
toEqual
(
'
foo@bar.com
'
);
expect
(
vm
.
$refs
[
'
service-desk-incoming-email
'
].
textContent
.
trim
()).
toEqual
(
'
foo@bar.com
'
);
expect
(
el
.
querySelector
(
'
.fa-spinner
'
)).
toBeNull
();
expect
(
el
.
querySelector
(
'
.fa-spinner
'
)).
toBeNull
();
expect
(
el
.
querySelector
(
'
.fa-exclamation-circle
'
)).
toBeNull
();
expect
(
el
.
querySelector
(
'
.fa-exclamation-circle
'
)).
toBeNull
();
...
@@ -70,7 +94,7 @@ describe('ServiceDeskSetting', () => {
...
@@ -70,7 +94,7 @@ describe('ServiceDeskSetting', () => {
el
=
vm
.
$el
;
el
=
vm
.
$el
;
});
});
it
(
'
see error message
'
,
()
=>
{
it
(
'
s
hould s
ee error message
'
,
()
=>
{
expect
(
el
.
querySelector
(
'
.fa-exclamation-circle
'
)).
toBeDefined
();
expect
(
el
.
querySelector
(
'
.fa-exclamation-circle
'
)).
toBeDefined
();
expect
(
el
.
querySelector
(
'
.panel-body
'
).
textContent
.
trim
()).
toEqual
(
'
An error occurred while fetching the incoming email
'
);
expect
(
el
.
querySelector
(
'
.panel-body
'
).
textContent
.
trim
()).
toEqual
(
'
An error occurred while fetching the incoming email
'
);
expect
(
el
.
querySelector
(
'
.fa-spinner
'
)).
toBeNull
();
expect
(
el
.
querySelector
(
'
.fa-spinner
'
)).
toBeNull
();
...
@@ -94,7 +118,7 @@ describe('ServiceDeskSetting', () => {
...
@@ -94,7 +118,7 @@ describe('ServiceDeskSetting', () => {
});
});
it
(
'
should not see warning message
'
,
()
=>
{
it
(
'
should not see warning message
'
,
()
=>
{
expect
(
el
.
querySelector
(
'
.settings-message
'
)).
toBeNull
();
expect
(
vm
.
$refs
[
'
recommend-protect-email-from-spam-message
'
]).
toBeUndefined
();
});
});
});
});
...
...
spec/javascripts/projects/settings_service_desk/services/service_desk_service_spec.js
View file @
000037cb
...
@@ -26,7 +26,7 @@ describe('ServiceDeskService', () => {
...
@@ -26,7 +26,7 @@ describe('ServiceDeskService', () => {
});
});
describe
(
'
toggleServiceDesk
'
,
()
=>
{
describe
(
'
toggleServiceDesk
'
,
()
=>
{
it
(
'
enable
service d
esk
'
,
(
done
)
=>
{
it
(
'
enable
Service D
esk
'
,
(
done
)
=>
{
spyOn
(
service
.
serviceDeskResource
,
'
update
'
).
and
.
returnValue
(
Promise
.
resolve
({
spyOn
(
service
.
serviceDeskResource
,
'
update
'
).
and
.
returnValue
(
Promise
.
resolve
({
data
:
{
data
:
{
service_desk_enabled
:
true
,
service_desk_enabled
:
true
,
...
@@ -40,11 +40,11 @@ describe('ServiceDeskService', () => {
...
@@ -40,11 +40,11 @@ describe('ServiceDeskService', () => {
done
();
done
();
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
done
.
fail
(
`Failed to enable
service d
esk and fetch incoming email:\n
${
err
}
`
);
done
.
fail
(
`Failed to enable
Service D
esk and fetch incoming email:\n
${
err
}
`
);
});
});
});
});
it
(
'
disable
service d
esk
'
,
(
done
)
=>
{
it
(
'
disable
Service D
esk
'
,
(
done
)
=>
{
spyOn
(
service
.
serviceDeskResource
,
'
update
'
).
and
.
returnValue
(
Promise
.
resolve
({
spyOn
(
service
.
serviceDeskResource
,
'
update
'
).
and
.
returnValue
(
Promise
.
resolve
({
data
:
{
data
:
{
service_desk_enabled
:
false
,
service_desk_enabled
:
false
,
...
@@ -58,7 +58,7 @@ describe('ServiceDeskService', () => {
...
@@ -58,7 +58,7 @@ describe('ServiceDeskService', () => {
done
();
done
();
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
done
.
fail
(
`Failed to disable
service d
esk and reset incoming email:\n
${
err
}
`
);
done
.
fail
(
`Failed to disable
Service D
esk and reset incoming email:\n
${
err
}
`
);
});
});
});
});
});
});
...
...
spec/javascripts/projects/settings_service_desk/stores/service_desk_store_spec.js
View file @
000037cb
...
@@ -50,4 +50,22 @@ describe('ServiceDeskStore', () => {
...
@@ -50,4 +50,22 @@ describe('ServiceDeskStore', () => {
expect
(
store
.
state
.
fetchError
).
toEqual
(
err
);
expect
(
store
.
state
.
fetchError
).
toEqual
(
err
);
});
});
});
});
describe
(
'
setIsInstanceAdmin
'
,
()
=>
{
it
(
'
defaults to false
'
,
()
=>
{
expect
(
store
.
state
.
isInstanceAdmin
).
toEqual
(
false
);
});
it
(
'
set true
'
,
()
=>
{
store
.
setIsInstanceAdmin
(
true
);
expect
(
store
.
state
.
isInstanceAdmin
).
toEqual
(
true
);
});
it
(
'
set false
'
,
()
=>
{
store
.
setIsInstanceAdmin
(
false
);
expect
(
store
.
state
.
isInstanceAdmin
).
toEqual
(
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