Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mathnogueira committed Jul 15, 2024
1 parent a38ed00 commit 5f21ff6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/src/services/__tests__/Assertion.service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ describe('AssertionService', () => {
});
describe('escapeString', () => {
it('should escape simple quotes', () => {
const {escapeString} = AssertionService
const {escapeString} = AssertionService;
const escaped = escapeString(`'This should be escaped'`, `'`);
expect(escaped).toBe(`\\'This should be escaped\\'`);
})
});

it('should not escape already escaped string', () => {
const {escapeString} = AssertionService
const {escapeString} = AssertionService;
const escaped = escapeString(`\\'This should be escaped\\'`, `'`);
expect(escaped).toBe(`\\'This should be escaped\\'`);
})
});
});
});

0 comments on commit 5f21ff6

Please sign in to comment.