Skip to content

Commit

Permalink
test: remove impossible default
Browse files Browse the repository at this point in the history
makeSuggestion is only called by getSuggestedQuery which handles the default of variant
  • Loading branch information
kentcdodds committed Jun 14, 2020
1 parent 613eee6 commit a76dfad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/suggestions.js
Expand Up @@ -34,7 +34,7 @@ function getRegExpMatcher(string) {
return new RegExp(string.toLowerCase(), 'i')
}

function makeSuggestion(queryName, content, {variant = 'get', name}) {
function makeSuggestion(queryName, content, {variant, name}) {
const queryArgs = [
queryName === 'Role' || queryName === 'TestId'
? content
Expand Down

0 comments on commit a76dfad

Please sign in to comment.