Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
peterkle committed Nov 14, 2024
1 parent 917f818 commit 2beb06e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
11 changes: 8 additions & 3 deletions static/src/components/setting/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
class="col-md-12"
:style="waiting && 'opacity: 0.5'"
>
<div class="form-group row" v-if="!isAdmin">
<div
v-if="!isAdmin"
class="form-group row"
>
<div class="col-md-5">
<p>Authorized Services</p>
</div>
Expand Down Expand Up @@ -121,7 +124,9 @@
:value="u.id"
@click="remove($event, u.id)"
>
<p class="assigned-user"> {{ u.fullname }}</p>
<p class="assigned-user">
{{ u.fullname }}
</p>
</div>
</div>
</td>
Expand Down Expand Up @@ -202,7 +207,7 @@ export default {
completed_tasks_cleanup_days: null,
allow_taskrun_edit: false,
authorizedServices: [],
isAdmin: false,
isAdmin: false
};
},
created () {
Expand Down
14 changes: 7 additions & 7 deletions static/src/test/components/setting/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ describe('projectConfig', () => {
it('show external config', () => {
const wrapper = shallowMount(projectConfig,
{
data() {
data () {
return {
externalConfigDict: { target_bucket: 'bucket', cluster: 'c1' },
inputFields: {
gigwork_poller: { display: 'test1', fields: [{ type: 'TextField', name: 'target_bucket' }] },
hdfs: { display: 'test2', fields: [{ type: 'SelectField', name: 'cluster', choices: [('c1', 'option1')] }] }
},
isAdmin: false
}
};
}
}
);
Expand All @@ -100,12 +100,12 @@ describe('projectConfig', () => {
it('add assigned user', () => {
const wrapper = shallowMount(projectConfig,
{
data() {
data () {
return {
assignee: ['1'],
users: [{ 1: { id: 1, fullname: 'sally fields', last_name: 'fields' }}, {2: { id: 2, fullname: 'tom hanks', last_name: 'hanks' } }],
users: [{ 1: { id: 1, fullname: 'sally fields', last_name: 'fields' } }, { 2: { id: 2, fullname: 'tom hanks', last_name: 'hanks' } }],
searchResult: [{ id: 1, fullname: 'sally fields', last_name: 'fields' }, { id: 2, fullname: 'tom hanks', last_name: 'hanks' }]
}
};
}
}
);
Expand All @@ -118,13 +118,13 @@ describe('projectConfig', () => {
it('remove assigned user', async () => {
const wrapper = shallowMount(projectConfig,
{
data() {
data () {
return {
assignee: ['1'],
users: { 1: { id: 1, fullname: 'user 1', last_name: '1' } },
searchResult: [{ id: 1, fullname: 'user 1', last_name: '1' }],
isAdmin: false
}
};
}
});
expect(wrapper.findAll('p.assigned-user')).toHaveLength(1);
Expand Down

0 comments on commit 2beb06e

Please sign in to comment.