 
 PlanFooter = require '../../../src/components/task-plan/footer'
 {Testing, sinon, expect, _, React} = require '../helpers/component-testing'
+{ExtendBasePlan, PlanRenderHelper} = require '../helpers/task-plan'
 
 two_days_ago = (new Date(Date.now() - 1000 * 3600 * 24 * 2)).toString()
 yesterday = (new Date(Date.now() - 1000 * 3600 * 24)).toString()

  params:
    date: moment(TimeStore.getNow()).format('YYYY-MM-DD')

helper = (model) ->
  {id} = model
  # Load the plan into the store
  TaskPlanActions.loaded(model, id)
  Testing.renderComponent( PlanFooter, props: {id, courseId: "1", getBackToCalendarParams} )


describe 'Task Plan Footer', ->
  beforeEach ->

dayAfter = (new Date(tomorrow + 1000 * 3600 * 24)).toString()


NEW_READING = ExtendBasePlan({type: 'reading', id: "_CREATING_1"})
UNPUBLISHED_READING = ExtendBasePlan({type: 'reading'})
PUBLISHED_READING = ExtendBasePlan({type: 'reading', published_at: yesterday})
PAST_DUE_PUBLISHED_READING = ExtendBasePlan({type: 'reading', published_at: two_days_ago}, {opens_at: two_days_ago, due_at: yesterday})
VISIBLE_READING = ExtendBasePlan({type: 'reading', published_at: yesterday}, {opens_at: yesterday})
VISIBLE_HW = ExtendBasePlan({type: 'homework', published_at: yesterday}, {opens_at: yesterday})

NEW_HW = ExtendBasePlan({type: 'homework', id: "_CREATING_1"})
HW_WITH_EXERCISES = ({
  type: 'homework',
  settings: {
    exercise_ids: ['1']
  }
})


# Stub the function, TODO - bring in helper
getBackToCalendarParams = ->
