mirror of https://github.com/Budibase/budibase.git
6 changed files with 101 additions and 16 deletions
@ -0,0 +1,92 @@ |
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP |
|||
|
|||
exports[`/datasources fetch returns all the datasources from the server 1`] = ` |
|||
Array [ |
|||
Object { |
|||
"_id": "bb_internal", |
|||
"config": Object {}, |
|||
"entities": Array [ |
|||
Object { |
|||
"_id": "ta_users", |
|||
"_rev": "1-039883a06c1f9cb3945731d79838181e", |
|||
"name": "Users", |
|||
"primaryDisplay": "email", |
|||
"schema": Object { |
|||
"email": Object { |
|||
"constraints": Object { |
|||
"email": true, |
|||
"length": Object { |
|||
"maximum": "", |
|||
}, |
|||
"presence": true, |
|||
"type": "string", |
|||
}, |
|||
"fieldName": "email", |
|||
"name": "email", |
|||
"type": "string", |
|||
}, |
|||
"firstName": Object { |
|||
"constraints": Object { |
|||
"presence": false, |
|||
"type": "string", |
|||
}, |
|||
"fieldName": "firstName", |
|||
"name": "firstName", |
|||
"type": "string", |
|||
}, |
|||
"lastName": Object { |
|||
"constraints": Object { |
|||
"presence": false, |
|||
"type": "string", |
|||
}, |
|||
"fieldName": "lastName", |
|||
"name": "lastName", |
|||
"type": "string", |
|||
}, |
|||
"roleId": Object { |
|||
"constraints": Object { |
|||
"inclusion": Array [ |
|||
"ADMIN", |
|||
"POWER", |
|||
"BASIC", |
|||
"PUBLIC", |
|||
], |
|||
"presence": false, |
|||
"type": "string", |
|||
}, |
|||
"fieldName": "roleId", |
|||
"name": "roleId", |
|||
"type": "options", |
|||
}, |
|||
"status": Object { |
|||
"constraints": Object { |
|||
"inclusion": Array [ |
|||
"active", |
|||
"inactive", |
|||
], |
|||
"presence": false, |
|||
"type": "string", |
|||
}, |
|||
"fieldName": "status", |
|||
"name": "status", |
|||
"type": "options", |
|||
}, |
|||
}, |
|||
"type": "table", |
|||
"views": Object {}, |
|||
}, |
|||
], |
|||
"name": "Budibase DB", |
|||
"source": "BUDIBASE", |
|||
"type": "budibase", |
|||
}, |
|||
Object { |
|||
"_id": "datasource_f8f81b1f0893478580b863fe96f1f3da", |
|||
"_rev": "1-1df90f81a2294ba7349f690f4a6df092", |
|||
"config": Object {}, |
|||
"name": "Test", |
|||
"source": "POSTGRES", |
|||
"type": "datasource", |
|||
}, |
|||
] |
|||
`; |
|||
Loading…
Reference in new issue