Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Hervieu committed Sep 25, 2020
1 parent 1488de6 commit 981993a
Show file tree
Hide file tree
Showing 6 changed files with 10,568 additions and 8,240 deletions.
12 changes: 6 additions & 6 deletions cypress/integration/basic_spec.js
Expand Up @@ -6,24 +6,24 @@ describe('Basic assertions', function() {

it('Display the image and cropper with correct dimension', function() {
cy.get('img').should('have.css', 'width', '1000px')
cy.get('img').should('have.css', 'height', '524px')
cy.get('[data-testid=cropper]').should('have.css', 'width', '699px') // 4/3 the height of the image
cy.get('img').should('have.css', 'height', '523.546875px')
cy.get('[data-testid=cropper]').should('have.css', 'width', '698.65625px') // 4/3 the height of the image
cy.get('[data-testid=cropper]').should('have.css', 'height', '524px') // height of the image
})

it('Display tall images and set the image and cropper with correct dimension', function() {
cy.visit('/?img=/images/cat.jpeg')
cy.get('img').should('have.css', 'width', '338px')
cy.get('img').should('have.css', 'width', '338.4375px')
cy.get('img').should('have.css', 'height', '600px')
cy.get('[data-testid=cropper]').should('have.css', 'width', '338px') // width of the image
cy.get('[data-testid=cropper]').should('have.css', 'height', '254px') // 3/4 of height of the image
cy.get('[data-testid=cropper]').should('have.css', 'height', '253.5px') // 3/4 of height of the image
})

it('Display the image and cropper with correct dimension after window resize', function() {
cy.viewport(600, 1000)
cy.get('img').should('have.css', 'width', '600px')
cy.get('img').should('have.css', 'height', '314px')
cy.get('[data-testid=cropper]').should('have.css', 'width', '419px') // 4/3 the height of the image
cy.get('img').should('have.css', 'height', '314.125px')
cy.get('[data-testid=cropper]').should('have.css', 'width', '418.65625px') // 4/3 the height of the image
cy.get('[data-testid=cropper]').should('have.css', 'height', '314px') // height of the image
})

Expand Down
44 changes: 22 additions & 22 deletions docs/package.json
Expand Up @@ -13,34 +13,34 @@
"deploy": "yarn build --prefix-paths && gh-pages -d public"
},
"dependencies": {
"@material-ui/core": "^4.8.2",
"@material-ui/icons": "^4.5.1",
"@material-ui/styles": "^4.8.2",
"gatsby": "^2.2.5",
"gatsby-image": "^2.0.34",
"gatsby-plugin-manifest": "^2.0.24",
"gatsby-plugin-material-ui": "^2.1.6",
"gatsby-plugin-offline": "^2.0.25",
"@material-ui/core": "^4.11.0",
"@material-ui/icons": "^4.9.1",
"@material-ui/styles": "^4.10.0",
"gatsby": "^2.24.65",
"gatsby-image": "^2.4.19",
"gatsby-plugin-manifest": "^2.4.31",
"gatsby-plugin-material-ui": "^2.1.10",
"gatsby-plugin-offline": "^3.2.28",
"gatsby-plugin-prefetch-google-fonts": "^1.4.0",
"gatsby-plugin-react-helmet": "^3.0.10",
"gatsby-plugin-sharp": "^2.0.30",
"gatsby-plugin-typescript": "^2.1.23",
"gatsby-source-filesystem": "^2.0.27",
"gatsby-transformer-sharp": "^2.1.17",
"react": "^16.8.4",
"react-dom": "^16.8.4",
"react-easy-crop": "^2.0.0",
"react-helmet": "^5.2.0"
"gatsby-plugin-react-helmet": "^3.3.11",
"gatsby-plugin-sharp": "^2.6.36",
"gatsby-plugin-typescript": "^2.4.20",
"gatsby-source-filesystem": "^2.3.30",
"gatsby-transformer-sharp": "^2.5.15",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-easy-crop": "^3.1.1",
"react-helmet": "^6.1.0"
},
"repository": {
"type": "git",
"url": "https://github.com/ricardo-ch/react-easy-crop"
},
"devDependencies": {
"@types/node": "^13.1.2",
"@types/react": "^16.9.17",
"@types/react-dom": "^16.9.4",
"@types/react-helmet": "^5.0.14",
"gh-pages": "^2.0.1"
"@types/node": "^14.11.2",
"@types/react": "^16.9.49",
"@types/react-dom": "^16.9.8",
"@types/react-helmet": "^6.1.0",
"gh-pages": "^3.1.0"
}
}

0 comments on commit 981993a

Please sign in to comment.