Skip to content

Commit

Permalink
fix: replaced mount with mountWithTheme
Browse files Browse the repository at this point in the history
  • Loading branch information
QuaidBartolomei committed Oct 9, 2021
1 parent ef4a8d3 commit 32ad800
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 12 deletions.
7 changes: 4 additions & 3 deletions src/common/TreeAge.cy.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import React from 'react';
import { mount } from '@cypress/react';

import { mountWithTheme as mount } from '../models/test-utils';
import TreeAge from './TreeAge';

describe('TreeAge', () => {
it('TreeAge', () => {
const treeAgeValue = "8 Years";
const treeAgeValue = '8 Years';
function Test() {
return (<TreeAge treeAge={treeAgeValue} />);
return <TreeAge treeAge={treeAgeValue} />;
}
mount(<Test />);
});
Expand Down
3 changes: 2 additions & 1 deletion src/components/ImageShower.cy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import { mount } from '@cypress/react';

import { mountWithTheme as mount } from '../models/test-utils';
import ImageShower from './ImageShower';

describe('ImageShower', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/InformationCard1.cy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { mount } from '@cypress/react';
import { mountWithTheme as mount } from '../models/test-utils';
import InformationCard1 from './InformationCard1';

const info = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Logo.cy.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { mount } from '@cypress/react';
import React from 'react';

import logo from '../images/greenstand_logo_full.png';
import { mountWithTheme as mount } from '../models/test-utils';
import Logo from './Logo';

describe('Logo', () => {
Expand Down
3 changes: 2 additions & 1 deletion src/components/Navbar.cy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { mount } from '@cypress/react';
import React from 'react';

import { mountWithTheme as mount } from '../models/test-utils';
import Navbar from './Navbar';

describe('Navbar tests', () => {
Expand Down
3 changes: 2 additions & 1 deletion src/components/Share.cy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { mount } from '@cypress/react';
import React from 'react';

import { mountWithTheme as mount } from '../models/test-utils';
import Share from './Share';

describe('Share', () => {
Expand Down
3 changes: 2 additions & 1 deletion src/components/SidePanel.cy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { mount } from '@cypress/react';
import React from 'react';

import { mountWithTheme as mount } from '../models/test-utils';
import SidePanel from './SidePanel';

describe('SidePanel', () => {
Expand Down
3 changes: 2 additions & 1 deletion src/components/Timeline.cy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { mount } from '@cypress/react';
import React from 'react';

import { mountWithTheme as mount } from '../models/test-utils';
import Timeline from './Timeline';

describe('Timeline', () => {
Expand Down
3 changes: 2 additions & 1 deletion src/components/VerifiedBadge.cy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import { mount } from '@cypress/react';

import { mountWithTheme as mount } from '../models/test-utils';
import VerifiedBadge from './VerifiedBadge';

describe('Verified Badge', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/models/mapTools.cy.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { mount } from '@cypress/react';
import expectRuntime from 'expect-runtime';
import React from 'react';

import * as mapTools from './mapTools';
import { mountWithTheme as mount } from './test-utils';

const google = {
maps: {
Expand Down

0 comments on commit 32ad800

Please sign in to comment.