mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Added "anyStringNumber" matcher to e2e framework
refs https://github.com/TryGhost/Toolbox/issues/335 - Existing `anyNumber` matcher does not do a job when the number is stringified, so introduced a new string matcher to match stringified numbers
This commit is contained in:
parent
998584f6e1
commit
9e7bea5bb3
1 changed files with 1 additions and 0 deletions
|
@ -280,6 +280,7 @@ module.exports = {
|
||||||
anyString: any(String),
|
anyString: any(String),
|
||||||
anyArray: any(Array),
|
anyArray: any(Array),
|
||||||
anyNumber: any(Number),
|
anyNumber: any(Number),
|
||||||
|
anyStringNumber: stringMatching(/\d+/),
|
||||||
anyISODateTime: stringMatching(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.000Z/),
|
anyISODateTime: stringMatching(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.000Z/),
|
||||||
anyISODate: stringMatching(/\d{4}-\d{2}-\d{2}/),
|
anyISODate: stringMatching(/\d{4}-\d{2}-\d{2}/),
|
||||||
anyISODateTimeWithTZ: stringMatching(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.000\+\d{2}:\d{2}/),
|
anyISODateTimeWithTZ: stringMatching(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.000\+\d{2}:\d{2}/),
|
||||||
|
|
Loading…
Add table
Reference in a new issue