fix tests
This commit is contained in:
parent
69b23092af
commit
5c574a6384
|
@ -42,8 +42,6 @@ describe('XHome', () => {
|
||||||
const anchor = home.container.querySelector<HTMLAnchorElement>('a[href^="https://example.com/"]');
|
const anchor = home.container.querySelector<HTMLAnchorElement>('a[href^="https://example.com/"]');
|
||||||
assert.exists(anchor, 'anchor to the remote exists');
|
assert.exists(anchor, 'anchor to the remote exists');
|
||||||
assert.strictEqual(anchor?.href, 'https://example.com/@user/profile');
|
assert.strictEqual(anchor?.href, 'https://example.com/@user/profile');
|
||||||
|
|
||||||
assert.ok(anchor?.parentElement?.classList.contains('warn'), 'the parent is a warning');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test('The remote caution should fall back to uri if url is null', async () => {
|
test('The remote caution should fall back to uri if url is null', async () => {
|
||||||
|
|
Loading…
Reference in New Issue