Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. {
  2. // Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
  3. // description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
  4. // is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
  5. // used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
  6. // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
  7. // Placeholders with the same ids are connected.
  8. // Example:
  9. "context": {
  10. "scope": "javascript,typescript",
  11. "prefix": "$context",
  12. "body": [
  13. "context('when $1', () => {",
  14. " $2",
  15. "})"
  16. ]
  17. },
  18. "describe": {
  19. "scope": "javascript,typescript",
  20. "prefix": "$describe",
  21. "body": [
  22. "describe('$1', () => {",
  23. " $2",
  24. "})"
  25. ]
  26. },
  27. "before": {
  28. "scope": "javascript,typescript",
  29. "prefix": "$before",
  30. "body": [
  31. "before('$1', () => {",
  32. " $2",
  33. "})"
  34. ]
  35. },
  36. "after": {
  37. "scope": "javascript,typescript",
  38. "prefix": "$after",
  39. "body": [
  40. "after('$1', () => {",
  41. " $2",
  42. "})"
  43. ]
  44. },
  45. "afterEach": {
  46. "scope": "javascript,typescript",
  47. "prefix": "$afterEach",
  48. "body": [
  49. "afterEach(() => {",
  50. " $1",
  51. "})"
  52. ]
  53. },
  54. "beforeEach": {
  55. "scope": "javascript,typescript",
  56. "prefix": "$beforeEach",
  57. "body": [
  58. "beforeEach(() => {",
  59. " $1",
  60. "})"
  61. ]
  62. },
  63. "it": {
  64. "scope": "javascript,typescript",
  65. "prefix": "$it",
  66. "body": [
  67. "it('$1', () => {",
  68. " $2",
  69. "})"
  70. ],
  71. "description": "Mocha `it`"
  72. },
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement