move test data to __fixtures__
This commit is contained in:
16
helpers/codegen/generators/__fixtures__/test-data.js
Normal file
16
helpers/codegen/generators/__fixtures__/test-data.js
Normal file
@@ -0,0 +1,16 @@
|
||||
export const TEST_URL = "https://httpbin.org"
|
||||
export const TEST_PATH_NAME = "/path/to"
|
||||
export const TEST_QUERY_STRING = "?a=b"
|
||||
export const TEST_HTTP_USER = "mockUser"
|
||||
export const TEST_HTTP_PASSWORD = "mockPassword"
|
||||
export const TEST_BEARER_TOKEN = "abcdefghijklmn"
|
||||
export const TEST_RAW_REQUEST_BODY = "foo=bar&baz=qux"
|
||||
export const TEST_RAW_PARAMS_JSON = '{"foo": "bar", "baz": "qux"}'
|
||||
export const TEST_RAW_PARAMS_XML = `<?xml version=\'1.0\' encoding=\'utf-8\'?>
|
||||
<xml>
|
||||
<element foo="bar"></element>
|
||||
</xml>`
|
||||
export const TEST_HEADERS = [
|
||||
{ key: "h1", value: "h1v" },
|
||||
{ key: "h2", value: "h2v" },
|
||||
]
|
||||
Reference in New Issue
Block a user