Skip to content

Instantly share code, notes, and snippets.

@CheungJ
Last active May 19, 2017 10:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CheungJ/2e67f65146a0e49d227b576cf0fd2238 to your computer and use it in GitHub Desktop.
Save CheungJ/2e67f65146a0e49d227b576cf0fd2238 to your computer and use it in GitHub Desktop.

Abbreviation: desc

Template text:

describe("$description$", function () {
  it("should $it$", function () {
      $content$
  });
});

Abbreviation: iife

Template text:

(function () {
    "use strict";
    
    $startPoint$
})();

Abbreviation: it

Template text:

it("should $it$", function () {
    $content$
});

Abbreviation: log

Template text:

console.log("$val$");

Abbreviation: logg

Template text:

console.log("$value$", $val$);

Abbreviation: logkeys

Template text:

console.log("$val$ keys", Object.keys($val$));

Abbreviation: tobefalse

Template text:

expect($START$).toBeFalse();

Abbreviation: tobetrue

Template text:

expect($START$).toBeTrue();

Abbreviation: toequal

Template text:

expect($START$).toEqual($END$);

Abbreviation: pre

Template text:

<pre>{{$var$ | json}}</pre>

Abbreviation: beach

Template text:

beforeEach(function () {
    $START$
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment