mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-08 02:52:39 -05:00
Allowed any error message length in posts API error test snapshot
refs d5f03ec0b1
- underlying error message varies across node versions so the content-length can't be fixed
This commit is contained in:
parent
4c5ba4ed7d
commit
1cc8176d4f
2 changed files with 4 additions and 3 deletions
|
@ -648,7 +648,7 @@ exports[`Posts API Update Can update a post with lexical 4: [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": "3691",
|
||||
"content-length": StringMatching /\\\\d\\+/,
|
||||
"content-type": "application/json; charset=utf-8",
|
||||
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
||||
"vary": "Origin, Accept-Encoding",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const should = require('should');
|
||||
const assert = require('assert');
|
||||
const {agentProvider, fixtureManager, mockManager, matchers} = require('../../utils/e2e-framework');
|
||||
const {anyArray, anyEtag, anyErrorId, anyLocationFor, anyObject, anyObjectId, anyISODateTime, anyString, anyUuid, stringMatching} = matchers;
|
||||
const {anyArray, anyEtag, anyErrorId, anyLocationFor, anyObject, anyObjectId, anyISODateTime, anyString, anyStringNumber, anyUuid, stringMatching} = matchers;
|
||||
const models = require('../../../core/server/models');
|
||||
|
||||
const matchPostShallowIncludes = {
|
||||
|
@ -291,7 +291,8 @@ describe('Posts API', function () {
|
|||
})
|
||||
.matchHeaderSnapshot({
|
||||
etag: anyEtag,
|
||||
'x-cache-invalidate': anyString
|
||||
'x-cache-invalidate': anyString,
|
||||
'content-length': anyStringNumber
|
||||
});
|
||||
|
||||
// post revisions are created
|
||||
|
|
Loading…
Add table
Reference in a new issue