fixed eslint & karma specs

This commit is contained in:
Phil Hughes 2018-04-16 09:52:33 +01:00
parent ea3a0d3ead
commit 8a076c1b5b
No known key found for this signature in database
GPG key ID: 32245528C52E0F9F
2 changed files with 2 additions and 2 deletions

View file

@ -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)}`;
},

View file

@ -19,6 +19,7 @@ describe('IDE File finder item spec', () => {
file: localFile,
focused: true,
searchText: '',
index: 0,
});
});