falsecz
7/18/2012 - 3:23 PM

Jasmine

Jasmine

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'
			
module.exports = class TokenPool
	get: (cb)->
		cb "data z poolu"