Skip to content

Commit fd6ffa9

Browse files
georgiashaynpfoss
andauthored
Unit test class search (#400)
* 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]>
1 parent 8f998b1 commit fd6ffa9

File tree

4 files changed

+389
-1
lines changed

4 files changed

+389
-1
lines changed

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
"Vuetify": "readonly",
4343
"VueRouter": "readonly",
4444
"VueCookies": "readonly",
45-
"BrowserSupportPlugin": "readonly"
45+
"BrowserSupportPlugin": "readonly",
46+
"regeneratorRuntime": "readonly"
4647
}
4748
}
4849
]

src/components/FilterSet.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
>
88
<v-btn
99
v-for="(filter, index) in filters"
10+
:id="cssID(filter.name)"
1011
:key="filter.name"
1112
flat
1213
:value="index"
@@ -54,6 +55,9 @@ export default {
5455
*/
5556
buttonClicked (event) {
5657
document.getElementById('searchInputTF').focus();
58+
},
59+
cssID (name) {
60+
return 'filter-' + name.replace(/[~!@$%^&*()+=,./';:"?><[\]\\{}|`#]/gi, '-');
5761
}
5862
}
5963
};

0 commit comments

Comments
 (0)