mirror of https://github.com/Seich/Beau.git
				
				
				
			
		
			
				
	
	
		
			197 lines
		
	
	
		
			5.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			197 lines
		
	
	
		
			5.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
| // Jest Snapshot v1, https://goo.gl/fbAQLP
 | |
| 
 | |
| exports[`Beau's config Loader. should create a request list 1`] = `
 | |
| Beau {
 | |
|   "config": Config {
 | |
|     "COOKIEJAR": false,
 | |
|     "DEFAULTS": Object {
 | |
|       "headers": Object {
 | |
|         "authentication": "hello",
 | |
|       },
 | |
|     },
 | |
|     "ENDPOINT": "http://jsonplaceholder.typicode.com",
 | |
|     "ENVIRONMENT": Object {},
 | |
|     "HOSTS": Array [],
 | |
|     "PLUGINS": Plugins {
 | |
|       "context": Object {},
 | |
|       "registry": Object {
 | |
|         "dynamicValues": Array [],
 | |
|         "postRequestModifiers": Array [],
 | |
|         "preRequestModifiers": Array [],
 | |
|       },
 | |
|     },
 | |
|     "REQUESTS": Array [
 | |
|       Object {
 | |
|         "ALIAS": "get-post",
 | |
|         "COOKIEJAR": false,
 | |
|         "ENDPOINT": "http://jsonplaceholder.typicode.com",
 | |
|         "HEADERS": Object {
 | |
|           "authentication": "hello",
 | |
|         },
 | |
|         "REQUEST": "GET /posts/1",
 | |
|       },
 | |
|       Object {
 | |
|         "ALIAS": "user",
 | |
|         "COOKIEJAR": false,
 | |
|         "ENDPOINT": "http://jsonplaceholder.typicode.com",
 | |
|         "HEADERS": Object {
 | |
|           "authentication": "hello",
 | |
|           "hello": "world",
 | |
|         },
 | |
|         "REQUEST": "GET /user",
 | |
|       },
 | |
|     ],
 | |
|     "VERSION": 1,
 | |
|     "configKeys": Array [
 | |
|       "VERSION",
 | |
|       "ENDPOINT",
 | |
|       "PLUGINS",
 | |
|       "DEFAULTS",
 | |
|       "ENVIRONMENT",
 | |
|       "HOSTS",
 | |
|       "COOKIEJAR",
 | |
|     ],
 | |
|   },
 | |
|   "requests": RequestList {
 | |
|     "REQUESTS": Array [
 | |
|       Object {
 | |
|         "ALIAS": "get-post",
 | |
|         "COOKIEJAR": false,
 | |
|         "ENDPOINT": "http://jsonplaceholder.typicode.com",
 | |
|         "HEADERS": Object {
 | |
|           "authentication": "hello",
 | |
|         },
 | |
|         "REQUEST": "GET /posts/1",
 | |
|       },
 | |
|       Object {
 | |
|         "ALIAS": "user",
 | |
|         "COOKIEJAR": false,
 | |
|         "ENDPOINT": "http://jsonplaceholder.typicode.com",
 | |
|         "HEADERS": Object {
 | |
|           "authentication": "hello",
 | |
|           "hello": "world",
 | |
|         },
 | |
|         "REQUEST": "GET /user",
 | |
|       },
 | |
|     ],
 | |
|     "cache": RequestCache {
 | |
|       "$cache": Object {
 | |
|         "env": Object {},
 | |
|       },
 | |
|     },
 | |
|     "config": Config {
 | |
|       "COOKIEJAR": false,
 | |
|       "DEFAULTS": Object {
 | |
|         "headers": Object {
 | |
|           "authentication": "hello",
 | |
|         },
 | |
|       },
 | |
|       "ENDPOINT": "http://jsonplaceholder.typicode.com",
 | |
|       "ENVIRONMENT": Object {},
 | |
|       "HOSTS": Array [],
 | |
|       "PLUGINS": Plugins {
 | |
|         "context": Object {},
 | |
|         "registry": Object {
 | |
|           "dynamicValues": Array [],
 | |
|           "postRequestModifiers": Array [],
 | |
|           "preRequestModifiers": Array [],
 | |
|         },
 | |
|       },
 | |
|       "REQUESTS": Array [
 | |
|         Object {
 | |
|           "ALIAS": "get-post",
 | |
|           "COOKIEJAR": false,
 | |
|           "ENDPOINT": "http://jsonplaceholder.typicode.com",
 | |
|           "HEADERS": Object {
 | |
|             "authentication": "hello",
 | |
|           },
 | |
|           "REQUEST": "GET /posts/1",
 | |
|         },
 | |
|         Object {
 | |
|           "ALIAS": "user",
 | |
|           "COOKIEJAR": false,
 | |
|           "ENDPOINT": "http://jsonplaceholder.typicode.com",
 | |
|           "HEADERS": Object {
 | |
|             "authentication": "hello",
 | |
|             "hello": "world",
 | |
|           },
 | |
|           "REQUEST": "GET /user",
 | |
|         },
 | |
|       ],
 | |
|       "VERSION": 1,
 | |
|       "configKeys": Array [
 | |
|         "VERSION",
 | |
|         "ENDPOINT",
 | |
|         "PLUGINS",
 | |
|         "DEFAULTS",
 | |
|         "ENVIRONMENT",
 | |
|         "HOSTS",
 | |
|         "COOKIEJAR",
 | |
|       ],
 | |
|     },
 | |
|     "list": Array [
 | |
|       Request {
 | |
|         "ALIAS": "get-post",
 | |
|         "COOKIEJAR": false,
 | |
|         "DEPENDENCIES": Set {},
 | |
|         "ENDPOINT": "http://jsonplaceholder.typicode.com",
 | |
|         "HEADERS": Object {
 | |
|           "authentication": "hello",
 | |
|         },
 | |
|         "PATH": "/posts/1",
 | |
|         "REQUEST": "GET /posts/1",
 | |
|         "VERB": "GET",
 | |
|         "originalRequest": Object {
 | |
|           "ALIAS": "get-post",
 | |
|           "COOKIEJAR": false,
 | |
|           "ENDPOINT": "http://jsonplaceholder.typicode.com",
 | |
|           "HEADERS": Object {
 | |
|             "authentication": "hello",
 | |
|           },
 | |
|           "REQUEST": "GET /posts/1",
 | |
|         },
 | |
|         "plugins": Plugins {
 | |
|           "context": Object {},
 | |
|           "registry": Object {
 | |
|             "dynamicValues": Array [],
 | |
|             "postRequestModifiers": Array [],
 | |
|             "preRequestModifiers": Array [],
 | |
|           },
 | |
|         },
 | |
|       },
 | |
|       Request {
 | |
|         "ALIAS": "user",
 | |
|         "COOKIEJAR": false,
 | |
|         "DEPENDENCIES": Set {},
 | |
|         "ENDPOINT": "http://jsonplaceholder.typicode.com",
 | |
|         "HEADERS": Object {
 | |
|           "authentication": "hello",
 | |
|           "hello": "world",
 | |
|         },
 | |
|         "PATH": "/user",
 | |
|         "REQUEST": "GET /user",
 | |
|         "VERB": "GET",
 | |
|         "originalRequest": Object {
 | |
|           "ALIAS": "user",
 | |
|           "COOKIEJAR": false,
 | |
|           "ENDPOINT": "http://jsonplaceholder.typicode.com",
 | |
|           "HEADERS": Object {
 | |
|             "authentication": "hello",
 | |
|             "hello": "world",
 | |
|           },
 | |
|           "REQUEST": "GET /user",
 | |
|         },
 | |
|         "plugins": Plugins {
 | |
|           "context": Object {},
 | |
|           "registry": Object {
 | |
|             "dynamicValues": Array [],
 | |
|             "postRequestModifiers": Array [],
 | |
|             "preRequestModifiers": Array [],
 | |
|           },
 | |
|         },
 | |
|       },
 | |
|     ],
 | |
|   },
 | |
| }
 | |
| `;
 |