pw-test.json 525 B

123456789101112131415161718192021222324
  1. {
  2. "!name": "pw-test",
  3. "!define": {
  4. "Expectation": {
  5. "not": "Expectation",
  6. "toBe": "fn(value: ?)",
  7. "toBeLevel2xx": "fn()",
  8. "toBeLevel3xx": "fn()",
  9. "toBeLevel4xx": "fn()",
  10. "toBeLevel5xx": "fn()",
  11. "toBeType": "fn(type: string)",
  12. "toHaveLength": "fn(length: number)"
  13. }
  14. },
  15. "pw": {
  16. "expect": "fn(value: ?) -> Expectation",
  17. "response": {
  18. "status": "number",
  19. "headers": "?",
  20. "body": "?"
  21. },
  22. "test": "fn(name: string, func: fn())"
  23. }
  24. }