Skip to content

Commit

Permalink
Merge pull request #211 from Ebazhanov/fix-readme-typo-fixtures
Browse files Browse the repository at this point in the history
[Typo] in README.md `fixtures` -> `fixture`
  • Loading branch information
josephzidell committed Aug 26, 2020
2 parents 8ee7180 + 6204f6e commit c61e9b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ cy.get('[data-cy="file-input"]').attachFile({ filePath: data, fileName: 'users.j
/* If your file needs special processing not supported out of the box, you can pass fileContent directly */

const special = 'file.spss';
cy.fixtures(special, 'binary')
cy.fixture(special, 'binary')
.then(Cypress.Blob.binaryStringToBlob)
.then((fileContent) => {
cy.get('[data-cy="file-input"]').attachFile({ fileContent, filePath: special, encoding: 'utf-8' });
Expand All @@ -79,7 +79,7 @@ cy.fixtures(special, 'binary')
/* when providing fileContent is possible to ignore filePath but fileName and mime type must be provided */

const special = 'file.spss';
cy.fixtures(special, 'binary')
cy.fixture(special, 'binary')
.then(Cypress.Blob.binaryStringToBlob)
.then((fileContent) => {
cy.get('[data-cy="file-input"]').attachFile({ fileContent, fileName: 'special', mimeType: 'application/octet-stream', encoding: 'utf-8' });
Expand Down

0 comments on commit c61e9b0

Please sign in to comment.