From c286ed070686fdc2974a1b7e296a2ec2106f0e9e Mon Sep 17 00:00:00 2001 From: michael-small Date: Wed, 27 Mar 2019 14:53:11 -0500 Subject: [PATCH] Change phrasing of from "turns" to "parses", begin date parsing Addresses #13 --- .../src/app/rides/ride-list.component.spec.ts | 27 +++++++++++-------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/client/src/app/rides/ride-list.component.spec.ts b/client/src/app/rides/ride-list.component.spec.ts index 55020fb..a551943 100644 --- a/client/src/app/rides/ride-list.component.spec.ts +++ b/client/src/app/rides/ride-list.component.spec.ts @@ -72,50 +72,55 @@ describe('Ride list', () => { //TIME AND DATE PARSING //Time parsing from 24 hour format to 12 hour AM/PM - it('the client turns 13:01 time to 1:01 PM', () => { + it('the client parses 13:01 time to 1:01 PM', () => { expect(rideList.hourParse("13:01")).toBe("1:01 PM"); }); - it('the client turns 23:59 time to 11:59 PM', () => { + it('the client parses 23:59 time to 11:59 PM', () => { expect(rideList.hourParse("23:59")).toBe("11:59 PM"); }); - it('the client turns 00:00 time to 12:00 AM', () => { + it('the client parses 00:00 time to 12:00 AM', () => { expect(rideList.hourParse("00:00")).toBe("12:00 AM"); }); - it('the client turns 00:59 time to 12:59 AM', () => { + it('the client parses 00:59 time to 12:59 AM', () => { expect(rideList.hourParse("00:59")).toBe("12:59 AM"); }); - it('the client turns 12:00 time to 12:00 PM', () => { + it('the client parses 12:00 time to 12:00 PM', () => { expect(rideList.hourParse("12:00")).toBe("12:00 PM"); }); - it('the client turns 12:30 time to 12:30 PM', () => { + it('the client parses 12:30 time to 12:30 PM', () => { expect(rideList.hourParse("12:30")).toBe("12:30 PM"); }); - it('the client turns 15:30 time to 3:30 PM', () => { + it('the client parses 15:30 time to 3:30 PM', () => { expect(rideList.hourParse("15:30")).toBe("3:30 PM"); }); - it('the client turns 09:44 time to 9:44 AM', () => { + it('the client parses 09:44 time to 9:44 AM', () => { expect(rideList.hourParse("09:44")).toBe("9:44 AM"); }); - it('the client turns 11:03 time to 11:03 AM', () => { + it('the client parses 11:03 time to 11:03 AM', () => { expect(rideList.hourParse("11:03")).toBe("11:03 AM"); }); - it('the client turns 10:00 time to 10:00 AM', () => { + it('the client parses 10:00 time to 10:00 AM', () => { expect(rideList.hourParse("10:00")).toBe("10:00 AM"); }); - it('the client turns 09:59 time to 9:59 AM', () => { + it('the client parses 09:59 time to 9:59 AM', () => { expect(rideList.hourParse("09:59")).toBe("9:59 AM"); }); + //Date parsing from ISO format to human readable times + // it('the client parses 09:59 time to 9:59 AM', () => { + // expect(rideList.hourParse("09:59")).toBe("9:59 AM"); + // }); + //Affirmative containings: has the following items