mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Added anyDateWithTimezoneOffset matcher to e2e framework
refs https://github.com/TryGhost/Toolbox/issues/215 refs https://github.com/TryGhost/Ghost/issues/10065 - The dates in Content API are returned with UTC offset which does not play ball with existing "anyDate" matcher. Created a new matcher to underline the difference in date formatting between Content and Admin APIs
This commit is contained in:
parent
fa373e0956
commit
9f0545b133
1 changed files with 1 additions and 0 deletions
|
@ -278,6 +278,7 @@ module.exports = {
|
||||||
anyArray: any(Array),
|
anyArray: any(Array),
|
||||||
anyDate: stringMatching(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.000Z/),
|
anyDate: stringMatching(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.000Z/),
|
||||||
anyShortDate: stringMatching(/\d{4}-\d{2}-\d{2}/),
|
anyShortDate: stringMatching(/\d{4}-\d{2}-\d{2}/),
|
||||||
|
anyDateWithTimezoneOffset: stringMatching(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.000\+\d{2}:\d{2}/),
|
||||||
anyEtag: stringMatching(/(?:W\/)?"(?:[ !#-\x7E\x80-\xFF]*|\r\n[\t ]|\\.)*"/),
|
anyEtag: stringMatching(/(?:W\/)?"(?:[ !#-\x7E\x80-\xFF]*|\r\n[\t ]|\\.)*"/),
|
||||||
anyObjectId: stringMatching(/[a-f0-9]{24}/),
|
anyObjectId: stringMatching(/[a-f0-9]{24}/),
|
||||||
anyErrorId: stringMatching(/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/),
|
anyErrorId: stringMatching(/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/),
|
||||||
|
|
Loading…
Reference in a new issue