Skip to content

Instantly share code, notes, and snippets.

@borisyordanov
Last active June 26, 2020 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save borisyordanov/8927089667cca2a58bcc19a6f68a2641 to your computer and use it in GitHub Desktop.
Save borisyordanov/8927089667cca2a58bcc19a6f68a2641 to your computer and use it in GitHub Desktop.
FYI `pactMatchers` comes from a custom package I use
{
"Add id match": {
"prefix": "pact_id_match",
"body": [
"pactMatchers.id(${TM_SELECTED_TEXT})"
]
},
"Add oneOf match": {
"prefix": "pact_oneOf_match",
"body": [
"pactMatchers.oneOf(${TM_SELECTED_TEXT})"
]
},
"Add time match": {
"prefix": "pact_time_match",
"body": [
"pactMatchers.time(${TM_SELECTED_TEXT})"
]
},
"Add integer match": {
"prefix": "pact_integer_match",
"body": [
"integer(${TM_SELECTED_TEXT})"
]
},
"Add boolean match": {
"prefix": "pact_boolean_match",
"body": [
"boolean(${TM_SELECTED_TEXT})"
]
},
"Add string match": {
"prefix": "pact_string_match",
"body": [
"string(${TM_SELECTED_TEXT})"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment