Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re authored and astrobot-houston committed Apr 6, 2023
1 parent 45bff6f commit a89963e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/astro/src/vite-plugin-scanner/scan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function includesExport(code: string) {

// Support quoted values to allow statically known `import.meta.env` variables to be used
function isQuoted(value: string) {
return (value[0] === '"' || value[0] === "'") && value[value.length - 1] === value[0]
return (value[0] === '"' || value[0] === "'") && value[value.length - 1] === value[0];
}

function isTruthy(value: string) {
Expand Down
4 changes: 2 additions & 2 deletions packages/astro/test/units/vite-plugin-scanner/scan.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('astro scan', () => {
expect(result.prerender).to.equal(false);
});

it('recognizes single quoted boolean (\'true\')', async () => {
it("recognizes single quoted boolean ('true')", async () => {
const result = await scan(`export const prerender = 'true';`, '/src/components/index.astro');
expect(result.prerender).to.equal(true);
});
Expand All @@ -32,7 +32,7 @@ describe('astro scan', () => {
expect(result.prerender).to.equal(false);
});

it('recognizes single quoted boolean (\'false\')', async () => {
it("recognizes single quoted boolean ('false')", async () => {
const result = await scan(`export const prerender = 'false';`, '/src/components/index.astro');
expect(result.prerender).to.equal(false);
});
Expand Down

0 comments on commit a89963e

Please sign in to comment.