       expect(dueAt).to.not.be.ok
 
   it 'can clear due at when there is no common due at', ->
-    firstPeriod = COURSES[0].periods[0].id
-    secondPeriod = COURSES[0].periods[1].id
+    firstPeriod = COURSES[0].periods[0]
+    secondPeriod = COURSES[0].periods[1]
 
     helper(NEW_READING).then ({dom, element}) ->
       #set individual periods


helper = (model, routerQuery) -> PlanRenderHelper(model, Builder, {}, {}, routerQuery)


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

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

getDateString = (value) -> TimeHelper.getMomentPreserveDate(moment(value)).format(TutorDateFormat)
getISODateString = (value) -> TimeHelper.getMomentPreserveDate(moment(value)).format(ISO_DATE_FORMAT)

COURSES = require '../../../api/user/courses.json'
NEW_READING = ExtendBasePlan({id: "_CREATING_1", settings: {page_ids: []}}, false, false)
