Skip to content

Commit 432b8a0

Browse files
authored
Merge pull request #13 from oslabs-beta/testing
StateDropdown Unit Testing
2 parents 6307d6a + 4f7dfed commit 432b8a0

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
FROM node:10.16.2
2-
WORKDIR /usr/src/app
2+
WORKDIR /usr/src/app
33
COPY package*.json ./
44
RUN npm i
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import React from 'react';
2+
import { configure, shallow } from 'enzyme';
3+
import SwitchState from '../components/SwitchState';
4+
5+
// Should describe unit testing for SwitchState
6+
// Should create a shallow copy of SwitchState
7+
// The component should have an array of objects that have value
8+
// and the label should be the name of the state being captured
9+
10+
// If the label is selected, it should only display relevant components with the same state name

0 commit comments

Comments
 (0)