mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-19 17:52:21 +00:00
The Omnibar guard test pins its glyphs' own sizing
Co-authored-by: Manjunath Paparaju <[email protected]>
This commit is contained in:
1 parent
be9d772b4d
commit
7dd27d4ff7
1 file changed
+4
-1
@@ -20,7 +20,10 @@ test('the Omnibar hand-writes no button; each is a UiButton', () => {
|
||||
|
||||
test('the Omnibar hand-writes no Material glyph; each is a UiIcon', () => {
|
||||
assert.deepEqual(template.match(/material-symbols-outlined/g) ?? [], []);
|
||||
assert.equal(template.match(/<UiIcon\b/g)?.length, 3);
|
||||
const icons = template.match(/<UiIcon\b[^>]*>/g) ?? [];
|
||||
assert.equal(icons.length, 3);
|
||||
// Without it the kit writes an 18px size that beats the Omnibar's own rules.
|
||||
for (const icon of icons) assert.match(icon, /:size="null"/);
|
||||
});
|
||||
|
||||
test('the only inline SVG glyphs are the mic and the chat row bubble', () => {
|
||||
|
||||
Reference in new issue
Block a user