Skip to content

Commit 2d8272c

Browse files
florian-lefebvreastrobot-houston
authored andcommitted
[ci] format
1 parent 67b7493 commit 2d8272c

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

‎packages/astro/src/assets/fonts/providers/local.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type * as unifont from 'unifont';
2+
import { FONT_FORMAT_MAP } from '../constants.js';
23
import type { ResolvedLocalFontFamily } from '../types.js';
34
import { extractFontType } from '../utils.js';
4-
import { FONT_FORMAT_MAP } from '../constants.js';
55

66
// https://fonts.nuxt.com/get-started/providers#local
77
// https://github.com/nuxt/fonts/blob/main/src/providers/local.ts

‎packages/astro/src/assets/fonts/utils.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ export function renderFontSrc(sources: Exclude<unifont.FontFaceData['src'][numbe
4747
if ('url' in src) {
4848
let rendered = `url("${src.url}")`;
4949
if (src.format) {
50-
rendered += ` format("${src.format}")`
50+
rendered += ` format("${src.format}")`;
5151
}
5252
if (src.tech) {
53-
rendered += ` tech(${src.tech})`
53+
rendered += ` tech(${src.tech})`;
5454
}
5555
return rendered;
5656
}

‎packages/astro/test/units/assets/fonts/utils.test.js‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -557,10 +557,7 @@ describe('fonts utils', () => {
557557
);
558558
});
559559
it('does not wrap tech in quotes', () => {
560-
assert.equal(
561-
renderFontSrc([{ url: 'test', tech: 'x' }]).includes('tech(x)'),
562-
true,
563-
);
560+
assert.equal(renderFontSrc([{ url: 'test', tech: 'x' }]).includes('tech(x)'), true);
564561
});
565562
});
566563

0 commit comments

Comments
 (0)