mirror of
https://github.com/discourse/discourse.git
synced 2025-03-08 04:09:53 +00:00
fix js test failure
This commit is contained in:
parent
dbb814ec6a
commit
019f954c44
@ -335,7 +335,8 @@ export default function() {
|
||||
this.delete('/admin/badges/:id', success);
|
||||
|
||||
this.get('/onebox', request => {
|
||||
if (request.queryParams.url.startsWith('http://www.example.com/has-title')) {
|
||||
if (request.queryParams.url === 'http://www.example.com/has-title.html' ||
|
||||
request.queryParams.url === 'http://www.example.com/has-title-and-a-url-that-is-more-than-80-characters-because-thats-good-for-seo-i-guess.html') {
|
||||
return [
|
||||
200,
|
||||
{"Content-Type": "application/html"},
|
||||
|
Loading…
x
Reference in New Issue
Block a user