mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Moved site.test.js from regression to e2e-api
- We're in the process of rolling out a new e2e-framework, and getting rid of the regression tests - We'll eventually merge all the tests together and into using the same framework
This commit is contained in:
parent
cc466edd8f
commit
b5ee17b25f
2 changed files with 28 additions and 1 deletions
27
test/e2e-api/admin/__snapshots__/site.test.js.snap
Normal file
27
test/e2e-api/admin/__snapshots__/site.test.js.snap
Normal file
|
@ -0,0 +1,27 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`Site API can retrieve config and all expected properties 1: [body] 1`] = `
|
||||
Object {
|
||||
"site": Object {
|
||||
"accent_color": "#FF1A75",
|
||||
"description": "Thoughts, stories and ideas",
|
||||
"icon": null,
|
||||
"logo": null,
|
||||
"title": "Ghost",
|
||||
"url": "http://127.0.0.1:2369/",
|
||||
"version": StringMatching /\\\\d\\+\\\\\\.\\\\d\\+/,
|
||||
},
|
||||
}
|
||||
`;
|
||||
|
||||
exports[`Site API can retrieve config and all expected properties 2: [headers] 1`] = `
|
||||
Object {
|
||||
"access-control-allow-origin": "http://127.0.0.1:2369",
|
||||
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
||||
"content-length": "167",
|
||||
"content-type": "application/json; charset=utf-8",
|
||||
"etag": Any<String>,
|
||||
"vary": "Origin, Accept-Encoding",
|
||||
"x-powered-by": "Express",
|
||||
}
|
||||
`;
|
|
@ -1,4 +1,4 @@
|
|||
const {agentProvider, matchers} = require('../../../utils/e2e-framework');
|
||||
const {agentProvider, matchers} = require('../../utils/e2e-framework');
|
||||
const {anyString, stringMatching} = matchers;
|
||||
|
||||
describe('Site API', function () {
|
Loading…
Add table
Reference in a new issue