Skip to content

Commit

Permalink
test: foto contais valid base64
Browse files Browse the repository at this point in the history
Co-Authored-By: Marcela <[email protected]>
Co-Authored-By: Sebastián <[email protected]>
Co-Authored-By: Natália <[email protected]>
  • Loading branch information
4 people committed Sep 21, 2024
1 parent 5c3d9a5 commit 95adc12
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/__tests__/rotinas.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,10 @@ describe("hasFoto", () => {
console.log("Testing hasFoto with an empty string...");
expect(hasFoto("")).toBe(false);
});

it("should return true if foto contains valid base64 data", () => {
console.log("Testing hasFoto with valid base64 data...");
const validFoto = "data:image/png;base64,validbase64string";
expect(hasFoto(validFoto)).toBe(true);
});
});

0 comments on commit 95adc12

Please sign in to comment.