Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save javierfernandes/42a79df69757e6e6cd591e6e3d4b269a to your computer and use it in GitHub Desktop.

Select an option

Save javierfernandes/42a79df69757e6e6cd591e6e3d4b269a to your computer and use it in GitHub Desktop.
testFunction(
isWholeBlockSelected,
{
inputToParams: input => {
const state = createState(input)
return [state.getCurrentContent(), state.getSelection()]
},
cases: [
['[>This is some text>]', true],
['T[>his is some text>]', false],
['[>This is some tex>]t', false],
['This is some text', false],
]
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment