Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
micksumm committed Jun 25, 2021
2 parents aebfe75 + a9808c2 commit e423bb9
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 46 deletions.
2 changes: 1 addition & 1 deletion ada-project-docs/testing-requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ The wave 1 tests verify that:
The wave 2 tests exist in all three test files:
- `src/components/App.test.js`
- `src/App.test.js`
- `src/components/Board.test.js`
- `src/components/Square.test.js`
Expand Down
90 changes: 45 additions & 45 deletions src/components/Board.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,53 +3,53 @@ import '@testing-library/jest-dom/extend-expect';
import Board from './Board';
import { render, screen, fireEvent} from '@testing-library/react'

// Sample input to the Board component
const SAMPLE_BOARD = [
[
{
value: 'X',
id: 0,
},
{
value: 'X',
id: 1,
},
{
value: 'O',
id: 2,
},
],
[
{
value: 'X',
id: 3,
},
{
value: 'X',
id: 4,
},
{
value: 'O',
id: 5,
},
],
[
{
value: 'O',
id: 6,
},
{
value: 'O',
id: 7,
},
{
value: 'X',
id: 8,
},
],
];

describe('Wave 1: Board', () => {
// Sample input to the Board component
const SAMPLE_BOARD = [
[
{
value: 'X',
id: 0,
},
{
value: 'X',
id: 1,
},
{
value: 'O',
id: 2,
},
],
[
{
value: 'X',
id: 3,
},
{
value: 'X',
id: 4,
},
{
value: 'O',
id: 5,
},
],
[
{
value: 'O',
id: 6,
},
{
value: 'O',
id: 7,
},
{
value: 'X',
id: 8,
},
],
];

test('that board will render with the proper number of Xs and Os', () => {
// Act
Expand Down

0 comments on commit e423bb9

Please sign in to comment.