Skip to content

Commit

Permalink
revert(testing): outside src import, unit test locale (#691)
Browse files Browse the repository at this point in the history
* build, package remove locale as dev dependency
* i18n, revert towards require locale
  • Loading branch information
cdcabrera committed Jul 13, 2021
1 parent 8870d7f commit 51d1223
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@
"victory-create-container": "^35.8.1"
},
"devDependencies": {
"@curiosity/locales": "file:./public/locales",
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.1",
"apidoc-mock": "^4.0.0",
"cspell": "^5.4.1",
Expand Down
2 changes: 1 addition & 1 deletion src/components/i18n/__tests__/i18n.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import { shallow } from 'enzyme';
import _get from 'lodash/get';
import enLocales from '@curiosity/locales/en-US';
import enLocales from '../../../../public/locales/en-US';
import { I18n, translate, translateComponent } from '../i18n';

/**
Expand Down
3 changes: 0 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1362,9 +1362,6 @@
resolved "https://registry.yarnpkg.com/@csstools/normalize.css/-/normalize.css-10.1.0.tgz#f0950bba18819512d42f7197e56c518aa491cf18"
integrity sha512-ij4wRiunFfaJxjB0BdrYHIH8FxBJpOwNPhhAcunlmPdXudL1WQV1qoP9un6JsEBAgQH+7UXyyjh0g7jTxXK6tg==

"@curiosity/locales@file:./public/locales":
version "0.0.0"

"@dabh/diagnostics@^2.0.2":
version "2.0.2"
resolved "https://registry.yarnpkg.com/@dabh/diagnostics/-/diagnostics-2.0.2.tgz#290d08f7b381b8f94607dc8f471a12c675f9db31"
Expand Down

0 comments on commit 51d1223

Please sign in to comment.