From 019f954c4430a1de882de9fb11b626362dfcadf2 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Thu, 18 May 2017 13:36:45 -0400 Subject: [PATCH] fix js test failure --- test/javascripts/helpers/create-pretender.js.es6 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/javascripts/helpers/create-pretender.js.es6 b/test/javascripts/helpers/create-pretender.js.es6 index ef7b3ffec67..85d171a37f0 100644 --- a/test/javascripts/helpers/create-pretender.js.es6 +++ b/test/javascripts/helpers/create-pretender.js.es6 @@ -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"},