mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
499f2e852e
- we no longer have any concept of testing other versions than canary, therefore this folder doesn't mean anything
258 lines
6.7 KiB
Text
258 lines
6.7 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`Authentication API canary Blog setup complete setup 1`] = `
|
|
Object {
|
|
"users": Array [
|
|
Object {
|
|
"created_at": Any<Date>,
|
|
"updated_at": Any<Date>,
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`Authentication API canary Blog setup complete setup 2`] = `
|
|
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": "434",
|
|
"content-type": "application/json; charset=utf-8",
|
|
"date": Any<String>,
|
|
"etag": Any<String>,
|
|
"vary": "Origin, Accept-Encoding",
|
|
"x-cache-invalidate": "/*",
|
|
"x-powered-by": "Express",
|
|
}
|
|
`;
|
|
|
|
exports[`Authentication API canary Blog setup is setup? no 1`] = `
|
|
Object {
|
|
"setup": Array [
|
|
Object {
|
|
"status": false,
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`Authentication API canary Blog setup is setup? no 2`] = `
|
|
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": "28",
|
|
"content-type": "application/json; charset=utf-8",
|
|
"date": Any<String>,
|
|
"etag": Any<String>,
|
|
"vary": "Origin, Accept-Encoding",
|
|
"x-powered-by": "Express",
|
|
}
|
|
`;
|
|
|
|
exports[`Authentication API canary Blog setup is setup? yes 1`] = `
|
|
Object {
|
|
"setup": Array [
|
|
Object {
|
|
"status": true,
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`Authentication API canary Blog setup is setup? yes 2`] = `
|
|
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": "27",
|
|
"content-type": "application/json; charset=utf-8",
|
|
"date": Any<String>,
|
|
"etag": Any<String>,
|
|
"vary": "Origin, Accept-Encoding",
|
|
"x-powered-by": "Express",
|
|
}
|
|
`;
|
|
|
|
exports[`Authentication API canary Blog setup update setup 1`] = `
|
|
Object {
|
|
"users": Array [
|
|
Object {
|
|
"created_at": Any<String>,
|
|
"last_seen": Any<String>,
|
|
"updated_at": Any<String>,
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`Authentication API canary Blog setup update setup 2`] = `
|
|
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": "506",
|
|
"content-type": "application/json; charset=utf-8",
|
|
"date": Any<String>,
|
|
"etag": Any<String>,
|
|
"vary": "Origin, Accept-Encoding",
|
|
"x-cache-invalidate": "/*",
|
|
"x-powered-by": "Express",
|
|
}
|
|
`;
|
|
|
|
exports[`Authentication API canary Invitation check invalid invite 1`] = `
|
|
Object {
|
|
"invitation": Array [
|
|
Object {
|
|
"valid": false,
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`Authentication API canary Invitation check valid invite 1`] = `
|
|
Object {
|
|
"invitation": Array [
|
|
Object {
|
|
"valid": true,
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`Authentication API canary Invitation try to accept with invite 1`] = `
|
|
Object {
|
|
"invitation": Array [
|
|
Object {
|
|
"message": "Invitation accepted.",
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`Authentication API canary Password reset reset password 1`] = `
|
|
Object {
|
|
"passwordreset": Array [
|
|
Object {
|
|
"message": "Password changed successfully.",
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`Authentication API canary Password reset reset password 2`] = `
|
|
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": "64",
|
|
"content-type": "application/json; charset=utf-8",
|
|
"date": Any<String>,
|
|
"etag": Any<String>,
|
|
"vary": "Origin, Accept-Encoding",
|
|
"x-powered-by": "Express",
|
|
}
|
|
`;
|
|
|
|
exports[`Authentication API canary Password reset reset password: expired token 1`] = `
|
|
Object {
|
|
"errors": Array [
|
|
Object {
|
|
"id": Any<String>,
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`Authentication API canary Password reset reset password: expired token 2`] = `
|
|
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": "260",
|
|
"content-type": "application/json; charset=utf-8",
|
|
"date": Any<String>,
|
|
"etag": Any<String>,
|
|
"vary": "Origin, Accept-Encoding",
|
|
"x-powered-by": "Express",
|
|
}
|
|
`;
|
|
|
|
exports[`Authentication API canary Password reset reset password: generate reset token 1`] = `
|
|
Object {
|
|
"passwordreset": Array [
|
|
Object {
|
|
"message": "Check your email for further instructions.",
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`Authentication API canary Password reset reset password: generate reset token 2`] = `
|
|
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": "76",
|
|
"content-type": "application/json; charset=utf-8",
|
|
"date": Any<String>,
|
|
"etag": Any<String>,
|
|
"vary": "Origin, Accept-Encoding",
|
|
"x-powered-by": "Express",
|
|
}
|
|
`;
|
|
|
|
exports[`Authentication API canary Password reset reset password: invalid token 1`] = `
|
|
Object {
|
|
"errors": Array [
|
|
Object {
|
|
"id": Any<String>,
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`Authentication API canary Password reset reset password: invalid token 2`] = `
|
|
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": "314",
|
|
"content-type": "application/json; charset=utf-8",
|
|
"date": Any<String>,
|
|
"etag": Any<String>,
|
|
"vary": "Origin, Accept-Encoding",
|
|
"x-powered-by": "Express",
|
|
}
|
|
`;
|
|
|
|
exports[`Authentication API canary Password reset reset password: unmatched token 1`] = `
|
|
Object {
|
|
"errors": Array [
|
|
Object {
|
|
"id": Any<String>,
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`Authentication API canary Password reset reset password: unmatched token 2`] = `
|
|
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": "274",
|
|
"content-type": "application/json; charset=utf-8",
|
|
"date": Any<String>,
|
|
"etag": Any<String>,
|
|
"vary": "Origin, Accept-Encoding",
|
|
"x-powered-by": "Express",
|
|
}
|
|
`;
|
|
|
|
exports[`Authentication API canary Reset all passwords reset all passwords returns 200 1`] = `Object {}`;
|
|
|
|
exports[`Authentication API canary Reset all passwords reset all passwords returns 200 2`] = `
|
|
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": "2",
|
|
"content-type": "application/json; charset=utf-8",
|
|
"date": Any<String>,
|
|
"etag": Any<String>,
|
|
"vary": "Origin, Accept-Encoding",
|
|
"x-powered-by": "Express",
|
|
}
|
|
`;
|