Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
albertyw committed Apr 1, 2024
1 parent abd2f44 commit ed678d1
Show file tree
Hide file tree
Showing 2 changed files with 298 additions and 298 deletions.
20 changes: 10 additions & 10 deletions static/js/test/Component.test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { $, expect } from '@wdio/globals'
import { $, expect } from '@wdio/globals';

describe('WebdriverIO Component Testing', () => {
it('should be able to render to the DOM and assert', async () => {
const component = document.createElement('button')
component.innerHTML = 'Hello World!'
document.body.appendChild(component)
it('should be able to render to the DOM and assert', async () => {
const component = document.createElement('button');
component.innerHTML = 'Hello World!';
document.body.appendChild(component);

await expect($('aria/Hello World!')).toBePresent()
component.remove()
await expect($('aria/Hello World!')).not.toBePresent()
})
})
await expect($('aria/Hello World!')).toBePresent();
component.remove();
await expect($('aria/Hello World!')).not.toBePresent();
});
});
Loading

0 comments on commit ed678d1

Please sign in to comment.