Skip to content

Commit b77d3f4

Browse files
committed
enable disabled tests in get-detailed-building-status
1 parent a7690e9 commit b77d3f4

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed

source/views/building-hours/lib/__tests__/__snapshots__/get-detailed-building-status.test.js.snap

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3+
exports[`checks a list of schedules to see if any are open 1`] = `
4+
Array [
5+
Object {
6+
"isActive": true,
7+
"label": "Hours",
8+
"status": "10:30 AM — 2:00 AM",
9+
},
10+
]
11+
`;
12+
313
exports[`handles multiple internal schedules for the same timeframe 1`] = `
414
Array [
515
Object {
@@ -35,6 +45,26 @@ Array [
3545
]
3646
`;
3747

48+
exports[`returns a list of [isOpen, scheduleName, verboseStatus] tuples 1`] = `
49+
Array [
50+
Object {
51+
"isActive": true,
52+
"label": "Hours",
53+
"status": "10:30 AM — 2:00 AM",
54+
},
55+
]
56+
`;
57+
58+
exports[`returns false if none are available for this day 1`] = `
59+
Array [
60+
Object {
61+
"isActive": false,
62+
"label": "Hours",
63+
"status": "Closed today",
64+
},
65+
]
66+
`;
67+
3868
exports[`returns false if none are open 1`] = `
3969
Array [
4070
Object {

source/views/building-hours/lib/__tests__/get-detailed-building-status.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import {getDetailedBuildingStatus} from '../get-detailed-status'
33
import {plainMoment} from './moment.helper'
44

5-
xit('returns a list of [isOpen, scheduleName, verboseStatus] tuples', () => {
5+
it('returns a list of [isOpen, scheduleName, verboseStatus] tuples', () => {
66
let m = plainMoment('06-23-2017 1:00pm', 'MM-DD-YYYY h:mma')
77
let building = {
88
name: 'building',
@@ -31,7 +31,7 @@ xit('returns a list of [isOpen, scheduleName, verboseStatus] tuples', () => {
3131
expect(actual).toMatchSnapshot()
3232
})
3333

34-
xit('checks a list of schedules to see if any are open', () => {
34+
it('checks a list of schedules to see if any are open', () => {
3535
let m = plainMoment('06-23-2017 1:00pm', 'MM-DD-YYYY h:mma')
3636
let building = {
3737
name: 'building',
@@ -108,7 +108,7 @@ it('handles multiple named schedules for the same timeframe', () => {
108108
expect(actual[2].isActive).toBe(true)
109109
})
110110

111-
xit('returns false if none are available for this day', () => {
111+
it('returns false if none are available for this day', () => {
112112
let m = plainMoment('06-18-2017 1:00pm', 'MM-DD-YYYY h:mma')
113113
let building = {
114114
name: 'building',

0 commit comments

Comments
 (0)