1. Carlos Ble
  2. flas

Overview

HTTPS SSH

Fluent Gherkin API for asynchronous testing. Currently supporting only jQuery ajax requests and Jasmine as the test framework.

Example (CoffeeScript):

Given = flas.jasmine.given
When = flas.jasmine.when

x = 0
method1 = ->
   $.post('/someRequest', {someData: 1}, (data) -> x = x+2);
method2 = ->
   x = x + 4

describe "some scenario", ->
    it "works", ->
       Given ->
          method1()
       .When ->
          method2()
       .Then ->
          expect(x).toBe(6)