From bee6c936ce9458afa08696e0a2b9a1c2479b2411 Mon Sep 17 00:00:00 2001 From: Breno Calazans Date: Mon, 14 Jan 2019 12:00:12 -0200 Subject: [PATCH] Fix tests --- demo/src/App.js | 2 +- react/__tests__/ProfileContainer.test.js | 2 +- react/__tests__/ProfileSummary.test.js | 2 +- react/__tests__/StyleguideInput.test.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/demo/src/App.js b/demo/src/App.js index 0e2e2898..1cca5947 100644 --- a/demo/src/App.js +++ b/demo/src/App.js @@ -2,7 +2,7 @@ import React, { Component } from 'react' import { IntlProvider, addLocaleData } from 'react-intl' import ptLocaleData from 'react-intl/locale-data/pt' import Button from '@vtex/styleguide/lib/Button' -import ptTranslations from '../../messages/pt-BR' +import ptTranslations from '../../messages/pt' import ProfileContainer from '../../react/ProfileContainer' import ProfileRules from '../../react/ProfileRules' import ProfileSummary from '../../react/ProfileSummary' diff --git a/react/__tests__/ProfileContainer.test.js b/react/__tests__/ProfileContainer.test.js index 3186e407..a5144cab 100644 --- a/react/__tests__/ProfileContainer.test.js +++ b/react/__tests__/ProfileContainer.test.js @@ -5,7 +5,7 @@ import ProfileField from '../ProfileField' import mockRules from '../__mocks__/rules' import mockProfile from '../__mocks__/profile' -loadTranslation('../messages/pt-BR.json') +loadTranslation('../messages/pt.json') describe('ProfileContainer', () => { let wrapper diff --git a/react/__tests__/ProfileSummary.test.js b/react/__tests__/ProfileSummary.test.js index 974eef3a..fd2a7277 100644 --- a/react/__tests__/ProfileSummary.test.js +++ b/react/__tests__/ProfileSummary.test.js @@ -4,7 +4,7 @@ import ProfileSummary from '../ProfileSummary' import mockRules from '../__mocks__/rules' import mockProfile from '../__mocks__/profile' -loadTranslation('../messages/pt-BR.json') +loadTranslation('../messages/pt.json') describe('ProfileSummary', () => { let wrapper diff --git a/react/__tests__/StyleguideInput.test.js b/react/__tests__/StyleguideInput.test.js index 3ca9593f..4e986180 100644 --- a/react/__tests__/StyleguideInput.test.js +++ b/react/__tests__/StyleguideInput.test.js @@ -4,7 +4,7 @@ import StyleguideInput from '../inputs/StyleguideInput' import mockField from '../__mocks__/ruleField' import mockData from '../__mocks__/profileField' -loadTranslation('../messages/pt-BR.json') +loadTranslation('../messages/pt.json') describe('StyleguideInput', () => { let wrapper