Guest User

Untitled

a guest
Jan 19th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. class Math extends React.Component {
  2. constructor(props) {
  3. super(props);
  4. }
  5.  
  6. sum(a, b){
  7. return a+b;
  8. }
  9. export default Math;
  10.  
  11. import { Math } from './Math'
  12.  
  13. describe('Math', () => {
  14. it('should add correctly', () => {
  15. const result = Math.sum(10, 10);
  16. expect(result).toEqual(20);
  17. }
Add Comment
Please, Sign In to add comment