Skip to content

Commit

Permalink
fix another karma test
Browse files Browse the repository at this point in the history
  • Loading branch information
alicewriteswrongs committed Jan 9, 2024
1 parent 7428a9e commit cea23c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/karma/test-app/svg-attr/karma.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,18 @@ describe('svg attr', () => {
afterEach(tearDownDom);

it('adds and removes attribute', async () => {
const rect = app.querySelector('rect');
let rect = app.querySelector('rect');
expect(rect.getAttribute('transform')).toBe(null);

const button = app.querySelector('button');
button.click();
await waitForChanges();
rect = app.querySelector('rect');
expect(rect.getAttribute('transform')).toBe('rotate(45 27 27)');

button.click();
await waitForChanges();
rect = app.querySelector('rect');
expect(rect.getAttribute('transform')).toBe(null);
});
});

0 comments on commit cea23c4

Please sign in to comment.