Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. {
  2. "it": {
  3. "prefix": "dit",
  4. "body": [
  5. "it('$1', () => {\n $0\n});"
  6. ],
  7. "description": "Add it statement"
  8. },
  9. "it with done": {
  10. "prefix": "ditd",
  11. "body": [
  12. "it('$1', (done) => {\n $0\n});"
  13. ],
  14. "description": "Add it statement with done"
  15. },
  16. "describe": {
  17. "prefix": "ddesc",
  18. "body": [
  19. "describe('$1', () => {\n $0\n});"
  20. ],
  21. "description": "Add describe statement",
  22. },
  23. "before": {
  24. "prefix": "bef",
  25. "body": [
  26. "before(() => {\n $0\n});"
  27. ],
  28. "description": "Add before statement",
  29. },
  30. "beforeEach": {
  31. "prefix": "befea",
  32. "body": [
  33. "beforeEach(() => {\n $0\n});"
  34. ],
  35. "description": "Add beforeEach statement",
  36. },
  37. "after": {
  38. "prefix": "aft",
  39. "body": [
  40. "after(() => {\n $0\n});"
  41. ],
  42. "description": "Add after statement",
  43. },
  44. "afterEach": {
  45. "prefix": "aftea",
  46. "body": [
  47. "afterEach(() => {\n $0\n});"
  48. ],
  49. "description": "Add afterEach statement",
  50. },
  51. "console.log": {
  52. "prefix": "clg",
  53. "body": [
  54. "console.log($0);"
  55. ],
  56. "description": "Add console.log statement"
  57. },
  58. "expectToHaveBeenCalledWith": {
  59. "prefix": "ethbcw",
  60. "body": [
  61. "expect($1).to.have.been.calledWith($2);"
  62. ],
  63. "description": "expect().to.have.been.calledWith();"
  64. },
  65. "expectToBeCalledWith": {
  66. "prefix": "etbcw",
  67. "body": [
  68. "expect($1).to.be.calledWith($2);"
  69. ],
  70. "description": "expect().to.be.calledWith();"
  71. },
  72. "expectToEql": {
  73. "prefix": "ete",
  74. "body": [
  75. "expect($1).to.eql($0);"
  76. ],
  77. "description": "expect().to.eql()"
  78. },
  79. "expectToEqual": {
  80. "prefix": "etq",
  81. "body": [
  82. "expect($1).to.equal($0);"
  83. ],
  84. "description": "expect().to.equal()"
  85. }
  86. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement