Skip to content

Instantly share code, notes, and snippets.

@falsecz
Created July 18, 2012 15:23
Show Gist options
  • Save falsecz/3136875 to your computer and use it in GitHub Desktop.
Save falsecz/3136875 to your computer and use it in GitHub Desktop.
Jasmine
module.exports = class TokenPool
get: (cb)->
cb "data z poolu"
TokenPool = require '../index'
tp = new TokenPool
describe "Sample test", ->
it "melo by to delat to a to", ->
tp.get (data)->
expect(data).toEqual 'data z poolu'
it "to by melo spadnout", ->
tp.get (data)->
expect(data).toEqual 'data z pooxxlu'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment