Skip to content

Commit

Permalink
Updated file e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
sagzy committed Jan 29, 2025
1 parent 7498354 commit 5fae4eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ghost/core/test/e2e-api/admin/files.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('Files API', function () {
.attach('file', path.join(__dirname, '/../../utils/fixtures/images/loadingcat_square.gif'))
.expect(201);

res.body.files[0].url.should.match(new RegExp(`${config.get('url')}/content/files/\\d+/\\d+/loadingcat_square.gif`));
res.body.files[0].url.should.match(new RegExp(`${config.get('url')}/content/files/\\d+/\\d+/loadingcat_square-\\w{16}\\.gif`));
res.body.files[0].ref.should.equal('934203942');

files.push(res.body.files[0].url.replace(config.get('url'), ''));
Expand Down

0 comments on commit 5fae4eb

Please sign in to comment.