Commit 8a076c1b authored by Phil Hughes's avatar Phil Hughes

fixed eslint & karma specs

parent ea3a0d3e
<script> <script>
import { escape } from 'underscore';
import fuzzaldrinPlus from 'fuzzaldrin-plus'; import fuzzaldrinPlus from 'fuzzaldrin-plus';
import FileIcon from '../../../vue_shared/components/file_icon.vue'; import FileIcon from '../../../vue_shared/components/file_icon.vue';
import ChangedFileIcon from '../changed_file_icon.vue'; import ChangedFileIcon from '../changed_file_icon.vue';
...@@ -31,7 +30,7 @@ export default { ...@@ -31,7 +30,7 @@ export default {
}, },
computed: { computed: {
pathWithEllipsis() { pathWithEllipsis() {
return this.file.path.length < MAX_PATH_LENGTH || !addEllipsis return this.file.path.length < MAX_PATH_LENGTH
? this.file.path ? this.file.path
: `...${this.file.path.substr(this.file.path.length - MAX_PATH_LENGTH)}`; : `...${this.file.path.substr(this.file.path.length - MAX_PATH_LENGTH)}`;
}, },
......
...@@ -19,6 +19,7 @@ describe('IDE File finder item spec', () => { ...@@ -19,6 +19,7 @@ describe('IDE File finder item spec', () => {
file: localFile, file: localFile,
focused: true, focused: true,
searchText: '', searchText: '',
index: 0,
}); });
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment