Giter Site home page Giter Site logo

webstorm-livetpls-jasmine's Introduction

webstorm-livetpls-jasmine

Embed live templates for jasmine (behavior-driven development framework for testing JavaScript code)

Contributors

Feel free to purpose a Merge Request to improve this tools! Thanks to bornkiller

Jasmine 1.3.x & Jasmine 2.x

You'll be able to use jasmine 2.x live templates by switching to jasmine-2.x branch. master branch will provide live templates for Jasmine 1.3.x. Enjoy!

Installation

You can use install bash file to launch copy of xml files to your WebStorm preferences folder. Usage: ./install PATH

PATH is optional (it will be auto computed for Mac OS Platform and Webstorm6/7).

Documentation

These live templates was made for Jasmine testing framework.

List of available Live Templates

  • jasd: Jasmine describe template
  • jasda: Jasmine describe template with fat arrow function
  • jasi: Jasmine it template
  • jasbi: beforeEach with Angular's inject
  • jasbm: beforEach with AngularJS module
  • jasb: beforeEach
  • jasba: beforeEach with fat arrow function
  • it: Jasmine it template
  • ita: Jasmine it template with fat arrow function
  • iit: Jasmine it template with injectables
  • jasa: afterEach
  • jasaa: afterEach with fat arrow function
  • jasctrl: Jasmine describe controller
  • jasdir: Jasmine describe directive
  • jasf: Jasmine describe filter
  • jass: Jasmine describe service
  • expectbe: Expect(X).toBe(Y)
  • expectnotbe: Expect(X).not.toBe(Y)
  • expectequal: Expect(X).toEqual(Y)
  • expectmatch: Expect(X).toMatch(Y)
  • expectnotmatch: Jasmine Expect(X).not.toMatch(Y)
  • expectdefined: Expect(X).toBeDefined()
  • expectundefined: Expect(X).toBeUndefined()
  • expectnotundefined: Expect(X).toBeUndefined()
  • expectnotdefined: Jasmine expect().not.toBeDefined()
  • expectnull: Expect(X).toBeNull()
  • expectnotnull: Expect(X).not.toBeNull()
  • expecttrue: Expect(X).toBeTruthy(Y)
  • expectfalse: Expect(X).toBeFalsy(Y)
  • expectnotfalse: Expect(X).not.toBeFalsy(Y)
  • expectnottrue: Expect(X).not.toBeTruthy(Y)
  • expectcontain: Expect(X).toContain(Y)
  • expectnotcontain: Expect(X).not.toContain(Y)
  • expectlessthan: Expect(X).toBeLessThan(Y)
  • expectgeaterthan: Expect(X).toBeGreaterThan(Y)
  • expectcloseto: Expect(X).toBeCloseTo(Y, Z)
  • expectthrow: Expect(X).toThrow()
  • expectnotthrow: Expect(X).not.toThrow()
  • spyon: spyOn(Obj, Key)
  • spyonthrough: spyOn(Obj, Key).andCallThrough()
  • spyonreturn: spyOn(Obj, Key).andReturn()
  • spyoncallfake: spyOn(Obj, Key).andCallFake(fct)
  • expecthavebeencalled: Expect(X).toHaveBeenCalled()
  • expecthavebeencalledwith: Expect(X).toHaveBeenCalledWith(Y)
  • expectnumber: expect(X).toEqual(jasmine.any(Number))
  • expectarray: expect(X).toEqual(jasmine.any(Array))
  • expectfunc: expect(X).toEqual(jasmine.any(Function))
  • expectobj: expect(X).toEqual(jasmine.any(Object))
  • expectstr: expect(X).toEqual(jasmine.any(String))
  • expectobjcontain: expect($a$).toEqual(jasmine.objectContaining({}))

webstorm-livetpls-jasmine's People

Contributors

firehist avatar felixmosh avatar mortonfox avatar huang-xiao-jian avatar

Stargazers

Alexander Pape avatar RoestVrijStaal avatar Ostap Khomitskyi avatar Zoltan Rakottyai avatar Daniel Hollcraft avatar Chris Watson avatar naz avatar Amirali Nurmagomedov avatar Daniel Zen avatar  avatar  avatar  avatar Douglas Duteil avatar Josh Mu avatar Riccardo Coppola avatar Jie Li avatar Viktor Gamov avatar Yuya Saito avatar

Watchers

 avatar James Cloos avatar

webstorm-livetpls-jasmine's Issues

new branch for latest jasmine feature

Hi:
I suddenly realized that, jasmine had updated to 2.0, and has changed a lot,so how about a new branch to support new feature of latest jasmine 2.0, while preserve current achievement for older jasmine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.