mirror of https://github.com/Seich/Beau.git
237 lines
5.9 KiB
Plaintext
237 lines
5.9 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": Plugins {
|
|
"context": Object {},
|
|
"registry": Object {
|
|
"dynamicValues": Array [],
|
|
"postRequestModifiers": Array [],
|
|
"preRequestModifiers": 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",
|
|
},
|
|
],
|
|
"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": RequestList {
|
|
"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",
|
|
},
|
|
],
|
|
"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": Plugins {
|
|
"context": Object {},
|
|
"registry": Object {
|
|
"dynamicValues": Array [],
|
|
"postRequestModifiers": Array [],
|
|
"preRequestModifiers": 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",
|
|
},
|
|
],
|
|
"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,
|
|
},
|
|
},
|
|
"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",
|
|
},
|
|
"plugins": Plugins {
|
|
"context": Object {},
|
|
"registry": Object {
|
|
"dynamicValues": Array [],
|
|
"postRequestModifiers": Array [],
|
|
"preRequestModifiers": Array [],
|
|
},
|
|
},
|
|
},
|
|
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",
|
|
},
|
|
"plugins": Plugins {
|
|
"context": Object {},
|
|
"registry": Object {
|
|
"dynamicValues": Array [],
|
|
"postRequestModifiers": Array [],
|
|
"preRequestModifiers": Array [],
|
|
},
|
|
},
|
|
},
|
|
],
|
|
},
|
|
}
|
|
`;
|