jasmine.async icon indicating copy to clipboard operation
jasmine.async copied to clipboard

Minor change to allow using `this` for jasmine suite

Open togakangaroo opened this issue 11 years ago • 0 comments

Especially when writing coffeescript tests it is common to use this for variables in scope

A very minor change to allow this style

describe "a feature", ->
    async.beforeEach -> 
        @mockFoo = jasmine.createSpy()
        @sut = blah(mockFoo)

    it "calls foo", -> (expect @mockFoo).toHaveBeenCalled()

togakangaroo avatar Mar 02 '14 17:03 togakangaroo