Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "it": {
- "prefix": "dit",
- "body": [
- "it('$1', () => {\n $0\n});"
- ],
- "description": "Add it statement"
- },
- "it with done": {
- "prefix": "ditd",
- "body": [
- "it('$1', (done) => {\n $0\n});"
- ],
- "description": "Add it statement with done"
- },
- "describe": {
- "prefix": "ddesc",
- "body": [
- "describe('$1', () => {\n $0\n});"
- ],
- "description": "Add describe statement",
- },
- "before": {
- "prefix": "bef",
- "body": [
- "before(() => {\n $0\n});"
- ],
- "description": "Add before statement",
- },
- "beforeEach": {
- "prefix": "befea",
- "body": [
- "beforeEach(() => {\n $0\n});"
- ],
- "description": "Add beforeEach statement",
- },
- "after": {
- "prefix": "aft",
- "body": [
- "after(() => {\n $0\n});"
- ],
- "description": "Add after statement",
- },
- "afterEach": {
- "prefix": "aftea",
- "body": [
- "afterEach(() => {\n $0\n});"
- ],
- "description": "Add afterEach statement",
- },
- "console.log": {
- "prefix": "clg",
- "body": [
- "console.log($0);"
- ],
- "description": "Add console.log statement"
- },
- "expectToHaveBeenCalledWith": {
- "prefix": "ethbcw",
- "body": [
- "expect($1).to.have.been.calledWith($2);"
- ],
- "description": "expect().to.have.been.calledWith();"
- },
- "expectToBeCalledWith": {
- "prefix": "etbcw",
- "body": [
- "expect($1).to.be.calledWith($2);"
- ],
- "description": "expect().to.be.calledWith();"
- },
- "expectToEql": {
- "prefix": "ete",
- "body": [
- "expect($1).to.eql($0);"
- ],
- "description": "expect().to.eql()"
- },
- "expectToEqual": {
- "prefix": "etq",
- "body": [
- "expect($1).to.equal($0);"
- ],
- "description": "expect().to.equal()"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement