Skip to content

Commit 238afc7

Browse files
committed
match codegrade's test
1 parent b1b5921 commit 238afc7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

codegrade_mvp.test.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ const testSquares = (squares, activeIdx) => {
4141
})
4242
}
4343

44-
test('AppFunctional is a functional component, Review how to build a functional component, including useState and passing props.', () => {
44+
test('AppFunctional is a functional component', () => {
4545
expect(
4646
AppFunctional.prototype &&
4747
AppFunctional.prototype.isReactComponent
4848
).not.toBeTruthy()
4949
})
50-
test('AppClass is a class-based component, Review how to build a class-based component, such as using “extends”, and constructors', () => {
50+
test('AppClass is a class-based component', () => {
5151
expect(
5252
AppClass.prototype &&
5353
AppClass.prototype.isReactComponent
@@ -70,7 +70,7 @@ test('AppClass is a class-based component, Review how to build a class-based com
7070
document.body.innerHTML = ''
7171
})
7272

73-
describe(`[A ${label}] Active Square, Review how to set a class name and use ternary statements, as well as how to set, manipulate, and read pieces of state. Also review how to handle user interaction.`, () => {
73+
describe(`[A ${label}] Active Square`, () => {
7474
test(`[A1 ${label}] Actions: none (Initial State of <App />)
7575
Active Square should be index 4`, () => {
7676
testSquares(squares, 4)
@@ -151,7 +151,7 @@ test('AppClass is a class-based component, Review how to build a class-based com
151151
testSquares(squares, 6)
152152
})
153153
})
154-
describe(`[B ${label}] Coordinates Readout, Review how to set, manipulate, and display pieces of state, and handle user interaction.`, () => {
154+
describe(`[B ${label}] Coordinates Readout`, () => {
155155
test(`[B1] Actions: none (Initial State of <App />)
156156
Coordinates should be (2,2)`, () => {
157157
expect(coordinates.textContent).toMatch(/\(2.*2\)$/)
@@ -232,7 +232,7 @@ test('AppClass is a class-based component, Review how to build a class-based com
232232
expect(coordinates.textContent).toMatch(/\(1.*3\)$/)
233233
})
234234
})
235-
describe(`[C ${label}] Limit Reached Message, Review how to set, manipulate, and display pieces of state, and handle user interaction.`, () => {
235+
describe(`[C ${label}] Limit Reached Message`, () => {
236236
test(`[C1 ${label}] Actions: none (Initial State of <App />)
237237
Limit reached message should be empty`, () => {
238238
expect(message.textContent).toBeFalsy()
@@ -313,7 +313,7 @@ test('AppClass is a class-based component, Review how to build a class-based com
313313
expect(message.textContent).toBe("You can't go left")
314314
})
315315
})
316-
describe(`[D ${label}] Steps Counter, Review how to set, manipulate, and display pieces of state, and handle user interaction.`, () => {
316+
describe(`[D ${label}] Steps Counter`, () => {
317317
test(`[D1 ${label}] Steps counter works correctly`, () => {
318318
expect(steps.textContent).toBe("You moved 0 times")
319319
fireEvent.click(up)
@@ -339,7 +339,7 @@ test('AppClass is a class-based component, Review how to build a class-based com
339339
expect(steps.textContent).toBe("You moved 1 time")
340340
})
341341
})
342-
describe(`[E ${label}] Reset Button, Review how to set, manipulate, and display pieces of state, and handle user interaction.`, () => {
342+
describe(`[E ${label}] Reset Button`, () => {
343343
test(`[E1 ${label}] Active Square is reset`, () => {
344344
fireEvent.click(up)
345345
fireEvent.click(up)

0 commit comments

Comments
 (0)