-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathconvert.test.ts.snap
30 lines (27 loc) · 1.18 KB
/
convert.test.ts.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`rdme openapi convert > error handling > should warn if given an OpenAPI 3.0 definition (format: json) 1`] = `
{
"result": "Your API definition has been converted and bundled and saved to output.json!",
"stderr": "- Validating the API definition located at petstore.json...
⚠️ Warning! The input file is already OpenAPI, so no conversion is necessary. Any external references will be bundled.
",
"stdout": "",
}
`;
exports[`rdme openapi convert > error handling > should warn if given an OpenAPI 3.0 definition (format: yaml) 1`] = `
{
"result": "Your API definition has been converted and bundled and saved to output.json!",
"stderr": "- Validating the API definition located at petstore.yaml...
⚠️ Warning! The input file is already OpenAPI, so no conversion is necessary. Any external references will be bundled.
",
"stdout": "",
}
`;
exports[`rdme openapi convert > should convert with no prompts via opts 1`] = `
{
"result": "Your API definition has been converted and bundled and saved to output.json!",
"stderr": "- Validating the API definition located at petstore-simple.json...
",
"stdout": "",
}
`;