Skip to content

Commit

Permalink
chore(gatsby): Remove skipped date format tests (#16153)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprobst authored and wardpeet committed Jul 29, 2019
1 parent ee0cd87 commit 6238a1a
Showing 1 changed file with 0 additions and 61 deletions.
61 changes: 0 additions & 61 deletions packages/gatsby/src/schema/types/__tests__/date.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,6 @@ describe(`isDate`, () => {
}
)

it.skip.each([
`2018-08-31T23:25:16.019345123+02:00`,
`2018-08-31T23:25:16.019345123Z`,
])(`should return true for nanosecond precision: %s`, dateString => {
expect(isDate(dateString)).toBeTruthy()
})

it.skip.each([`2018-08-31T23:25:16.012345678901+02:00`])(
`should return false for precision beyond 9 digits: %s`,
dateString => {
expect(isDate(dateString)).toBeFalsy()
}
)

it.each([
`2010-00-00`,
`2010-01-00`,
Expand Down Expand Up @@ -124,32 +110,6 @@ describe(`isDate`, () => {
])(`should return false for invalid ISO 8601: %s`, dateString => {
expect(isDate(dateString)).toBeFalsy()
})

it.skip.each([
1371065286,
1379066897.0,
1379066897.7,
1379066897.0,
1379066897.07,
1379066897.17,
1379066897.0,
1379066897.007,
1379066897.017,
1379066897.157,
`1371065286`,
`1379066897.`,
`1379066897.0`,
`1379066897.7`,
`1379066897.00`,
`1379066897.07`,
`1379066897.17`,
`1379066897.000`,
`1379066897.007`,
`1379066897.017`,
`1379066897.157`,
])(`should return true for unix timestamps: %s`, dateString => {
expect(isDate(dateString)).toBeTruthy()
})
})

describe(`looksLikeADate`, () => {
Expand Down Expand Up @@ -220,27 +180,6 @@ describe(`looksLikeADate`, () => {
}
)

it.skip.each([
`2018-08-31T23:25:16.019345+02:00`,
`2018-08-31T23:25:16.019345Z`,
])(`should return true for microsecond precision: %s`, dateString => {
expect(looksLikeADate(dateString)).toBeTruthy()
})

it.skip.each([
`2018-08-31T23:25:16.019345123+02:00`,
`2018-08-31T23:25:16.019345123Z`,
])(`should return true for nanosecond precision: %s`, dateString => {
expect(looksLikeADate(dateString)).toBeTruthy()
})

it.skip.each([`2018-08-31T23:25:16.012345678901+02:00`])(
`should return false for precision beyond 9 digits: %s`,
dateString => {
expect(looksLikeADate(dateString)).toBeFalsy()
}
)

it.each([
`2010-00-00`,
`2010-01-00`,
Expand Down

0 comments on commit 6238a1a

Please sign in to comment.