|
| 1 | +// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing |
| 2 | + |
| 3 | +exports[`searchPatternFlyTool should have a consistent return structure: structure 1`] = ` |
| 4 | +{ |
| 5 | + "callback": [Function], |
| 6 | + "name": "searchPatternFly", |
| 7 | + "schema": true, |
| 8 | +} |
| 9 | +`; |
| 10 | + |
| 11 | +exports[`searchPatternFlyTool, callback should have a specific markdown format: Button 1`] = ` |
| 12 | +[ |
| 13 | + { |
| 14 | + "text": "# Search results for PatternFly version "v6" and "button". |
| 15 | +Found 2 collections with 5 related resources. Use the attached resources to access and read full content.", |
| 16 | + "type": "text", |
| 17 | + }, |
| 18 | + { |
| 19 | + "description": "A resource collection series for Button", |
| 20 | + "groupId": "123456", |
| 21 | + "mimeType": "text/markdown", |
| 22 | + "name": "Button (Collection)", |
| 23 | + "type": "resource_link", |
| 24 | + "uri": "patternfly://docs/123456", |
| 25 | + }, |
| 26 | + { |
| 27 | + "description": "Design Guidelines", |
| 28 | + "groupId": "123456", |
| 29 | + "mimeType": "text/markdown", |
| 30 | + "name": "Button - Design (v6)", |
| 31 | + "type": "resource_link", |
| 32 | + "uri": "patternfly://docs/34567b", |
| 33 | + }, |
| 34 | + { |
| 35 | + "description": "Component JSON schema with property definitions for Button.", |
| 36 | + "groupId": "123456", |
| 37 | + "mimeType": "text/markdown", |
| 38 | + "name": "Button - JSON Schema (v6)", |
| 39 | + "type": "resource_link", |
| 40 | + "uri": "patternfly://schemas/67b890", |
| 41 | + }, |
| 42 | + { |
| 43 | + "description": "A resource collection series for Lorem Button", |
| 44 | + "groupId": "654321", |
| 45 | + "mimeType": "text/markdown", |
| 46 | + "name": "Lorem Button (Collection)", |
| 47 | + "type": "resource_link", |
| 48 | + "uri": "patternfly://docs/654321", |
| 49 | + }, |
| 50 | + { |
| 51 | + "description": "Design Guidelines", |
| 52 | + "groupId": "654321", |
| 53 | + "mimeType": "text/markdown", |
| 54 | + "name": "Lorem Button - Design (v6)", |
| 55 | + "type": "resource_link", |
| 56 | + "uri": "patternfly://docs/e34567", |
| 57 | + }, |
| 58 | + { |
| 59 | + "description": "Design Guidelines", |
| 60 | + "groupId": "654321", |
| 61 | + "mimeType": "text/markdown", |
| 62 | + "name": "Lorem Button - Guidelines (v6)", |
| 63 | + "type": "resource_link", |
| 64 | + "uri": "patternfly://docs/34567", |
| 65 | + }, |
| 66 | + { |
| 67 | + "description": "Component JSON schema with property definitions for Lorem Button.", |
| 68 | + "groupId": "654321", |
| 69 | + "mimeType": "text/markdown", |
| 70 | + "name": "Lorem Button - JSON Schema (v6)", |
| 71 | + "type": "resource_link", |
| 72 | + "uri": "patternfly://schemas/678e90", |
| 73 | + }, |
| 74 | +] |
| 75 | +`; |
| 76 | + |
| 77 | +exports[`searchPatternFlyTool, callback should parse parameters, exact match 1`] = `"# Search results for PatternFly version "v6" and "button"."`; |
| 78 | + |
| 79 | +exports[`searchPatternFlyTool, callback should parse parameters, wildcard search 1`] = `"# Search results for PatternFly version "v6" and "all" resources."`; |
0 commit comments