fixed eslint & karma specs
This commit is contained in:
parent
ea3a0d3ead
commit
8a076c1b5b
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
|||
<script>
|
||||
import { escape } from 'underscore';
|
||||
import fuzzaldrinPlus from 'fuzzaldrin-plus';
|
||||
import FileIcon from '../../../vue_shared/components/file_icon.vue';
|
||||
import ChangedFileIcon from '../changed_file_icon.vue';
|
||||
|
@ -31,7 +30,7 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
pathWithEllipsis() {
|
||||
return this.file.path.length < MAX_PATH_LENGTH || !addEllipsis
|
||||
return this.file.path.length < MAX_PATH_LENGTH
|
||||
? this.file.path
|
||||
: `...${this.file.path.substr(this.file.path.length - MAX_PATH_LENGTH)}`;
|
||||
},
|
||||
|
|
|
@ -19,6 +19,7 @@ describe('IDE File finder item spec', () => {
|
|||
file: localFile,
|
||||
focused: true,
|
||||
searchText: '',
|
||||
index: 0,
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue