Skip to content

Commit

Permalink
Unit test class search (#400)
Browse files Browse the repository at this point in the history
* WIP

* Fix ordering of input and test for output

* Fill in remaining tests

* lint

* test

* undo

* update package-lock?

* Import regeneratorRuntime

* Remove unnecessary package

Co-authored-by: Nate Foss <[email protected]>
  • Loading branch information
georgiashay and npfoss authored Dec 29, 2020
1 parent 8f998b1 commit fd6ffa9
Show file tree
Hide file tree
Showing 4 changed files with 389 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"Vuetify": "readonly",
"VueRouter": "readonly",
"VueCookies": "readonly",
"BrowserSupportPlugin": "readonly"
"BrowserSupportPlugin": "readonly",
"regeneratorRuntime": "readonly"
}
}
]
Expand Down
4 changes: 4 additions & 0 deletions src/components/FilterSet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
>
<v-btn
v-for="(filter, index) in filters"
:id="cssID(filter.name)"
:key="filter.name"
flat
:value="index"
Expand Down Expand Up @@ -54,6 +55,9 @@ export default {
*/
buttonClicked (event) {
document.getElementById('searchInputTF').focus();
},
cssID (name) {
return 'filter-' + name.replace(/[~!@$%^&*()+=,./';:"?><[\]\\{}|`#]/gi, '-');
}
}
};
Expand Down
Loading

0 comments on commit fd6ffa9

Please sign in to comment.