about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-05-25 12:23:14 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-05-25 05:23:14 +0200
commitc52090dbfe45a53730419485e46dda80ec10dda1 (patch)
tree1226be6896b30f3df6201a1a2d7363c0e2f33624
parent807c192fcf3a6cd0f4c712ec43130fbffddcc6c6 (diff)
fix storybook (#3292)
-rw-r--r--package.json2
-rw-r--r--storybook/stories/loading_indicator.story.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/package.json b/package.json
index 995ad6094..51136223a 100644
--- a/package.json
+++ b/package.json
@@ -7,7 +7,7 @@
     "build:production": "NODE_ENV=production yarn webpack -- --config config/webpack/production.js",
     "manage:translations": "node ./config/webpack/translationRunner.js",
     "start": "rimraf ./tmp/streaming && babel ./streaming/index.js --out-dir ./tmp && node ./tmp/streaming/index.js",
-    "storybook": "start-storybook -p 9001 -c storybook",
+    "storybook": "NODE_ENV=test start-storybook -p 9001 -c storybook",
     "test": "npm run test:lint && npm run test:mocha",
     "test:lint": "eslint -c .eslintrc.yml --ext=js app/javascript/ config/webpack/ storyboard/ streaming/",
     "test:mocha": "NODE_ENV=test mocha --require ./spec/javascript/setup.js --compilers js:babel-register ./spec/javascript/components/*.test.jsx",
diff --git a/storybook/stories/loading_indicator.story.js b/storybook/stories/loading_indicator.story.js
index f3e67e89c..84d722d69 100644
--- a/storybook/stories/loading_indicator.story.js
+++ b/storybook/stories/loading_indicator.story.js
@@ -1,12 +1,12 @@
 import React from 'react';
 import { IntlProvider } from 'react-intl';
 import { storiesOf } from '@kadira/storybook';
-import getMessagesForLocale from 'mastodon/locales';
+import en from 'mastodon/locales/en.json';
 import LoadingIndicator from 'mastodon/components/loading_indicator';
 
 storiesOf('LoadingIndicator', module)
   .add('default state', () => (
-    <IntlProvider locale='en' messages={getMessagesForLocale('en')}>
+    <IntlProvider locale='en' messages={en}>
       <LoadingIndicator />
     </IntlProvider>
   ));