@transferwise/components 0.0.0-experimental-991400c → 0.0.0-experimental-fb447f5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.esm.js +12 -21
- package/build/index.esm.js.map +1 -1
- package/build/index.js +12 -21
- package/build/index.js.map +1 -1
- package/build/main.css +1 -1
- package/build/styles/instructionsList/InstructionsList.css +1 -1
- package/build/styles/main.css +1 -1
- package/build/types/alert/Alert.d.ts.map +1 -1
- package/build/types/instructionsList/InstructionsList.d.ts +9 -1
- package/build/types/instructionsList/InstructionsList.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/alert/Alert.js +0 -8
- package/src/alert/Alert.spec.js +0 -9
- package/src/instructionsList/InstructionList.story.js +31 -0
- package/src/instructionsList/InstructionsList.css +1 -1
- package/src/instructionsList/InstructionsList.less +3 -15
- package/src/instructionsList/InstructionsList.spec.tsx +50 -0
- package/src/instructionsList/InstructionsList.tsx +17 -10
- package/src/main.css +1 -1
- package/src/instructionsList/InstructionsList.spec.js +0 -29
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { shallow } from 'enzyme';
|
|
2
|
-
|
|
3
|
-
import InstructionsList from '.';
|
|
4
|
-
|
|
5
|
-
describe('InstructionsList', () => {
|
|
6
|
-
it('should render dos list only', () => {
|
|
7
|
-
const dos = ['Test this component', 'With multiple dos'];
|
|
8
|
-
const component = shallow(<InstructionsList dos={dos} />);
|
|
9
|
-
|
|
10
|
-
expect(component.find('.do')).toHaveLength(2);
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
it('should render donts list only', () => {
|
|
14
|
-
const donts = ['Putting things into production without testing'];
|
|
15
|
-
|
|
16
|
-
const component = shallow(<InstructionsList donts={donts} />);
|
|
17
|
-
expect(component.find('.dont')).toHaveLength(1);
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should render do/dont lists', () => {
|
|
21
|
-
const dos = ['Do this'];
|
|
22
|
-
const donts = [`Don't do that`];
|
|
23
|
-
|
|
24
|
-
const component = shallow(<InstructionsList dos={dos} donts={donts} />);
|
|
25
|
-
expect(component.find('.do')).toHaveLength(1);
|
|
26
|
-
expect(component.find('.dont')).toHaveLength(1);
|
|
27
|
-
expect(component.find('.instruction')).toHaveLength(2);
|
|
28
|
-
});
|
|
29
|
-
});
|