From 43bcf0e582e3de933cbe0397e6b6d490df586917 Mon Sep 17 00:00:00 2001 From: Jim O'Donnell Date: Mon, 1 Apr 2024 13:18:13 +0100 Subject: [PATCH] Move the tests to talk-test.zooniverse.org --- lib/config.js | 2 +- test/talkClient.mjs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/config.js b/lib/config.js index 5112c6a..f5e455d 100644 --- a/lib/config.js +++ b/lib/config.js @@ -25,7 +25,7 @@ var TALK_HOSTS = { production: 'https://talk.zooniverse.org', staging: 'https://talk-staging.zooniverse.org', development: 'https://talk-staging.zooniverse.org', - test: 'https://talk.zooniverse.org' + test: 'https://talk-test.zooniverse.org' }; var SUGAR_HOSTS = { diff --git a/test/talkClient.mjs b/test/talkClient.mjs index 2a0f9f2..08e8948 100644 --- a/test/talkClient.mjs +++ b/test/talkClient.mjs @@ -6,7 +6,7 @@ import { talkSearch, talkSearchWithNull } from './support/mockTalkAPI.mjs'; describe('talkClient', function () { describe('search', function () { specify('should return a list of comments', async function () { - nock('https://talk.zooniverse.org') + nock('https://talk-test.zooniverse.org') .get('/searches?http_cache=true&types=comments§ion=zooniverse&page=1&pageSize=10&query=depression') .reply(200, talkSearch); @@ -27,7 +27,7 @@ describe('talkClient', function () { }); specify('should ignore null comments', async function () { // this Talk query returns 9 comments and one null comment. - nock('https://talk.zooniverse.org') + nock('https://talk-test.zooniverse.org') .get('/searches?http_cache=true&types=comments§ion=zooniverse&page=3&pageSize=10&query=depression') .reply(200, talkSearchWithNull);