Skip to content

Commit

Permalink
fix: rename shared/tests to shared/test-utils (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
acostalima authored Mar 19, 2020
1 parent 85492e4 commit 5f39f0b
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 15 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2019 Made With MOXY Lda <[email protected]>
Copyright (c) 2020 Made With MOXY Lda <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
13 changes: 3 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion www/app/App.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import Router from 'next/router';
import { render } from '@testing-library/react';
import { App } from './App';
import { AppTreeWrapper } from '../shared/tests';
import { AppTreeWrapper } from '../shared/test-utils';
import { trackPageViews } from '../shared/utils/google-analytics';

jest.mock('../shared/utils/google-analytics', () => ({ trackPageViews: jest.fn(() => jest.fn()) }));
Expand Down
2 changes: 1 addition & 1 deletion www/pages/contacts/Contacts.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { render } from '@testing-library/react';
import Contacts from './Contacts';
import { AppTree } from '../../shared/tests';
import { AppTree } from '../../shared/test-utils';

it('should render correctly', () => {
const { container } = render(<AppTree><Contacts /></AppTree>);
Expand Down
2 changes: 1 addition & 1 deletion www/pages/error/ErrorPage.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { render } from '@testing-library/react';

import { AppTree } from '../../shared/tests';
import { AppTree } from '../../shared/test-utils';
import ErrorPage from './ErrorPage';

it('should render internal server error when `statusCode` is not 404', () => {
Expand Down
2 changes: 1 addition & 1 deletion www/pages/home/Home.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { render } from '@testing-library/react';
import Home from './Home';
import { AppTree } from '../../shared/tests';
import { AppTree } from '../../shared/test-utils';

it('should render correctly', () => {
const { container } = render(<AppTree><Home /></AppTree>);
Expand Down
File renamed without changes.
File renamed without changes.

1 comment on commit 5f39f0b

@vercel
Copy link

@vercel vercel bot commented on 5f39f0b Mar 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.