mirror of https://github.com/Seich/Beau.git
				
				
				
			
		
			
				
	
	
		
			208 lines
		
	
	
		
			5.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			208 lines
		
	
	
		
			5.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
| // Jest Snapshot v1, https://goo.gl/fbAQLP
 | |
| 
 | |
| exports[`Beau's config Loader. should create a request list 1`] = `
 | |
| Beau {
 | |
|   "config": Config {
 | |
|     "CACHE": false,
 | |
|     "DEFAULTS": Object {
 | |
|       "headers": Object {
 | |
|         "authentication": "hello",
 | |
|       },
 | |
|     },
 | |
|     "ENDPOINT": "http://jsonplaceholder.typicode.com",
 | |
|     "ENVIRONMENT": Object {},
 | |
|     "HOSTS": Array [],
 | |
|     "PLUGINS": Array [],
 | |
|     "VERSION": 1,
 | |
|     "configKeys": Array [
 | |
|       "VERSION",
 | |
|       "CACHE",
 | |
|       "ENDPOINT",
 | |
|       "PLUGINS",
 | |
|       "DEFAULTS",
 | |
|       "ENVIRONMENT",
 | |
|       "HOSTS",
 | |
|     ],
 | |
|     "defaultConfigValues": Object {
 | |
|       "CACHE": false,
 | |
|       "DEFAULTS": Object {},
 | |
|       "ENDPOINT": "",
 | |
|       "ENVIRONMENT": Object {},
 | |
|       "HOSTS": Array [],
 | |
|       "PLUGINS": Array [],
 | |
|       "VERSION": 1,
 | |
|     },
 | |
|     "doc": Object {
 | |
|       "GET /posts/1": "get-post",
 | |
|       "GET /user": Object {
 | |
|         "alias": "user",
 | |
|         "headers": Object {
 | |
|           "hello": "world",
 | |
|         },
 | |
|       },
 | |
|       "defaults": Object {
 | |
|         "headers": Object {
 | |
|           "authentication": "hello",
 | |
|         },
 | |
|       },
 | |
|       "endpoint": "http://jsonplaceholder.typicode.com",
 | |
|       "version": 1,
 | |
|     },
 | |
|     "requests": Array [
 | |
|       Object {
 | |
|         "ALIAS": "get-post",
 | |
|         "ENDPOINT": "http://jsonplaceholder.typicode.com",
 | |
|         "HEADERS": Object {
 | |
|           "authentication": "hello",
 | |
|         },
 | |
|         "REQUEST": "GET /posts/1",
 | |
|       },
 | |
|       Object {
 | |
|         "ALIAS": "user",
 | |
|         "ENDPOINT": "http://jsonplaceholder.typicode.com",
 | |
|         "HEADERS": Object {
 | |
|           "authentication": "hello",
 | |
|           "hello": "world",
 | |
|         },
 | |
|         "REQUEST": "GET /user",
 | |
|       },
 | |
|     ],
 | |
|   },
 | |
|   "requests": RequestList {
 | |
|     "cache": RequestCache {
 | |
|       "$cache": Object {
 | |
|         "$env": Object {},
 | |
|       },
 | |
|     },
 | |
|     "config": Config {
 | |
|       "CACHE": false,
 | |
|       "DEFAULTS": Object {
 | |
|         "headers": Object {
 | |
|           "authentication": "hello",
 | |
|         },
 | |
|       },
 | |
|       "ENDPOINT": "http://jsonplaceholder.typicode.com",
 | |
|       "ENVIRONMENT": Object {},
 | |
|       "HOSTS": Array [],
 | |
|       "PLUGINS": Array [],
 | |
|       "VERSION": 1,
 | |
|       "configKeys": Array [
 | |
|         "VERSION",
 | |
|         "CACHE",
 | |
|         "ENDPOINT",
 | |
|         "PLUGINS",
 | |
|         "DEFAULTS",
 | |
|         "ENVIRONMENT",
 | |
|         "HOSTS",
 | |
|       ],
 | |
|       "defaultConfigValues": Object {
 | |
|         "CACHE": false,
 | |
|         "DEFAULTS": Object {},
 | |
|         "ENDPOINT": "",
 | |
|         "ENVIRONMENT": Object {},
 | |
|         "HOSTS": Array [],
 | |
|         "PLUGINS": Array [],
 | |
|         "VERSION": 1,
 | |
|       },
 | |
|       "doc": Object {
 | |
|         "GET /posts/1": "get-post",
 | |
|         "GET /user": Object {
 | |
|           "alias": "user",
 | |
|           "headers": Object {
 | |
|             "hello": "world",
 | |
|           },
 | |
|         },
 | |
|         "defaults": Object {
 | |
|           "headers": Object {
 | |
|             "authentication": "hello",
 | |
|           },
 | |
|         },
 | |
|         "endpoint": "http://jsonplaceholder.typicode.com",
 | |
|         "version": 1,
 | |
|       },
 | |
|       "requests": Array [
 | |
|         Object {
 | |
|           "ALIAS": "get-post",
 | |
|           "ENDPOINT": "http://jsonplaceholder.typicode.com",
 | |
|           "HEADERS": Object {
 | |
|             "authentication": "hello",
 | |
|           },
 | |
|           "REQUEST": "GET /posts/1",
 | |
|         },
 | |
|         Object {
 | |
|           "ALIAS": "user",
 | |
|           "ENDPOINT": "http://jsonplaceholder.typicode.com",
 | |
|           "HEADERS": Object {
 | |
|             "authentication": "hello",
 | |
|             "hello": "world",
 | |
|           },
 | |
|           "REQUEST": "GET /user",
 | |
|         },
 | |
|       ],
 | |
|     },
 | |
|     "list": Array [
 | |
|       Request {
 | |
|         "ALIAS": "get-post",
 | |
|         "DEPENDENCIES": Set {},
 | |
|         "ENDPOINT": "http://jsonplaceholder.typicode.com/posts/1",
 | |
|         "HEADERS": Object {
 | |
|           "authentication": "hello",
 | |
|         },
 | |
|         "PARAMS": undefined,
 | |
|         "PAYLOAD": undefined,
 | |
|         "VERB": "GET",
 | |
|         "originalRequest": Object {
 | |
|           "ALIAS": "get-post",
 | |
|           "ENDPOINT": "http://jsonplaceholder.typicode.com",
 | |
|           "HEADERS": Object {
 | |
|             "authentication": "hello",
 | |
|           },
 | |
|           "REQUEST": "GET /posts/1",
 | |
|         },
 | |
|       },
 | |
|       Request {
 | |
|         "ALIAS": "user",
 | |
|         "DEPENDENCIES": Set {},
 | |
|         "ENDPOINT": "http://jsonplaceholder.typicode.com/user",
 | |
|         "HEADERS": Object {
 | |
|           "authentication": "hello",
 | |
|           "hello": "world",
 | |
|         },
 | |
|         "PARAMS": undefined,
 | |
|         "PAYLOAD": undefined,
 | |
|         "VERB": "GET",
 | |
|         "originalRequest": Object {
 | |
|           "ALIAS": "user",
 | |
|           "ENDPOINT": "http://jsonplaceholder.typicode.com",
 | |
|           "HEADERS": Object {
 | |
|             "authentication": "hello",
 | |
|             "hello": "world",
 | |
|           },
 | |
|           "REQUEST": "GET /user",
 | |
|         },
 | |
|       },
 | |
|     ],
 | |
|     "modifiers": Array [],
 | |
|     "requests": Array [
 | |
|       Object {
 | |
|         "ALIAS": "get-post",
 | |
|         "ENDPOINT": "http://jsonplaceholder.typicode.com",
 | |
|         "HEADERS": Object {
 | |
|           "authentication": "hello",
 | |
|         },
 | |
|         "REQUEST": "GET /posts/1",
 | |
|       },
 | |
|       Object {
 | |
|         "ALIAS": "user",
 | |
|         "ENDPOINT": "http://jsonplaceholder.typicode.com",
 | |
|         "HEADERS": Object {
 | |
|           "authentication": "hello",
 | |
|           "hello": "world",
 | |
|         },
 | |
|         "REQUEST": "GET /user",
 | |
|       },
 | |
|     ],
 | |
|   },
 | |
| }
 | |
| `;
 |