added timefreeze to recurly wrapper, don't think it really works but never know *double shurg*

This commit is contained in:
Henry Oswald 2014-05-15 22:21:49 +01:00
parent 133c4759f8
commit ca1539cac0

View file

@ -4,6 +4,7 @@ crypto = require 'crypto'
querystring = require 'querystring'
RecurlyWrapper = require "../../../../app/js/Features/Subscription/RecurlyWrapper"
Settings = require "settings-sharelatex"
tk = require("timekeeper")
fixtures =
"subscriptions/44f83d7cba354d5b84812419f923ea96":
@ -107,7 +108,11 @@ describe "RecurlyWrapper", ->
Settings.defaultPlanCode =
collaborators: 0
versioning: false
tk.freeze(Date.now())
afterEach ->
tk.reset()
describe "sign", ->
before (done) ->
RecurlyWrapper.sign({