From 76ab2eacd5d6852ec2e8002fdfd59596b87d20f7 Mon Sep 17 00:00:00 2001 From: Josh David Miller Date: Mon, 26 Sep 2016 14:14:48 -0700 Subject: [PATCH] chore: add fake user agent for unit tests --- conf/specs.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/conf/specs.js b/conf/specs.js index e930720..c73d318 100644 --- a/conf/specs.js +++ b/conf/specs.js @@ -1 +1,7 @@ -global.STORYSHOP_API_URI = 'http://nonexistent'; \ No newline at end of file +global.STORYSHOP_API_URI = 'http://nonexistent'; +global.window = { + navigator: { + userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36', + } +}; +