Skip to content

Commit

Permalink
Move lines
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed May 29, 2022
1 parent 83d065a commit d44654a
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions src/config/normalize/lib/call/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,6 @@ export const callTest = async function ({ test, input, info, keyword }) {
})
}

// Call `keyword.normalize()`.
// Exceptions starting with "must" can be thrown for invalid definitions.
// Other exceptions are considered keyword bugs.
export const callNormalize = async function ({
normalize,
definition,
info,
keyword,
exampleDefinition,
}) {
const func = () => normalize(definition)
return await callFunc({
func,
info,
keyword,
definition,
exampleDefinition,
hasInput: false,
errorType: 'definition',
bugType: 'keyword',
})
}

// Call definition function.
// Exceptions starting with "must" can be thrown for invalid input.
// Other exceptions are considered invalid definitions.
Expand All @@ -66,6 +43,29 @@ export const callDefinition = async function ({
})
}

// Call `keyword.normalize()`.
// Exceptions starting with "must" can be thrown for invalid definitions.
// Other exceptions are considered keyword bugs.
export const callNormalize = async function ({
normalize,
definition,
info,
keyword,
exampleDefinition,
}) {
const func = () => normalize(definition)
return await callFunc({
func,
info,
keyword,
definition,
exampleDefinition,
hasInput: false,
errorType: 'definition',
bugType: 'keyword',
})
}

// Call `keyword.main()`
// Exceptions starting with "must" can be thrown for invalid input.
// Other exceptions are considered keyword bugs.
Expand Down

0 comments on commit d44654a

Please sign in to comment.