Skip to content

Commit

Permalink
fix: update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
quorth0n committed Feb 28, 2022
1 parent ae618c9 commit 679b8ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/components/Share.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ describe('Share', () => {
it('Share', () => {
mount(<Share />);
cy.get('.MuiButtonBase-root').click();
cy.get('#EmbedButton').click();
cy.get(
'div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > button:nth-child(1)',
).click();
cy.contains(/copy/i).click();
});
});
6 changes: 3 additions & 3 deletions src/components/common/CustomShareIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import Avatar from '@mui/material/Avatar';
import Grid from '@mui/material/Grid';
import IconButton from '@mui/material/IconButton';
import { green } from '@mui/material/colors';
import makeStyles from '@mui/styles/makeStyles';
import { makeStyles } from 'models/makeStyles';

const useStyles = makeStyles((theme) => ({
const useStyles = makeStyles()((theme) => ({
box2: {
[theme.breakpoints.down('sm')]: {
width: '25%',
Expand All @@ -25,7 +25,7 @@ const useStyles = makeStyles((theme) => ({
}));

function CustomShareIcon({ handleOnClick, children, mailString }) {
const classes = useStyles();
const { classes } = useStyles();

return (
<Grid item className={classes.box2}>
Expand Down

0 comments on commit 679b8ef

Please sign in to comment.