Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Fixed appointment calendar test
Browse files Browse the repository at this point in the history
Fixes #976
Closes #978
  • Loading branch information
jkleinsc committed Mar 17, 2017
1 parent ccf3c33 commit 9550d52
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/acceptance/appointments-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ test('visiting /appointments/missed', function(assert) {
runWithPouchDump('appointments', function() {
authenticateUser();
let url = '/appointments';
// create an apointmet scheduled in the past
let today = moment();
let tomorrow = moment().add(1, 'days');
let status = 'Missed';
Expand Down Expand Up @@ -148,8 +147,8 @@ test('Delete an appointment', function(assert) {
test('Appointment calendar', function(assert) {
runWithPouchDump('appointments', function() {
authenticateUser();
let later = moment().add(1, 'hours');
let today = moment();
let today = moment().startOf('day');
let later = moment(today).add(1, 'hours');
let startTime = today.format(TIME_FORMAT);
let endTime = later.format(TIME_FORMAT);
let timeString = `${startTime} - ${endTime}`;
Expand Down

0 comments on commit 9550d52

Please # to comment.