Browse Source

Fix tests affected by localization file changes

Ben Vinegar 9 years ago
parent
commit
5c464945e0
2 changed files with 3 additions and 2 deletions
  1. 2 1
      tests/karma.conf.js
  2. 1 1
      tests/sentry/templatetags/test_sentry_assets.py

+ 2 - 1
tests/karma.conf.js

@@ -32,7 +32,8 @@ module.exports = function(config) {
       resolve: {
       resolve: {
         alias: {
         alias: {
           'app': appPrefix,
           'app': appPrefix,
-          sinon: 'sinon/pkg/sinon' // see [1] above
+          sinon: 'sinon/pkg/sinon', // see [1] above
+          'sentry-locale': path.join(__dirname, '..', 'src', 'sentry', 'locale')
         },
         },
         modulesDirectories: ['node_modules'],
         modulesDirectories: ['node_modules'],
         extensions: ['', '.jsx', '.js', '.json']
         extensions: ['', '.jsx', '.js', '.json']

+ 1 - 1
tests/sentry/templatetags/test_sentry_assets.py

@@ -17,7 +17,7 @@ class AssetsTest(TestCase):
             'request': Mock(LANGUAGE_CODE='fr'),  # French, in locale/catalogs.json
             'request': Mock(LANGUAGE_CODE='fr'),  # French, in locale/catalogs.json
         }))
         }))
 
 
-        assert '<script src="/_static/{version}/sentry/dist/moment/locale/fr.js"></script>' in result
+        assert '<script src="/_static/{version}/sentry/dist/locale/fr.js"></script>' in result
 
 
     def test_unsupported_foreign_lang(self):
     def test_unsupported_foreign_lang(self):
         result = self.TEMPLATE.render(Context({
         result = self.TEMPLATE.render(Context({