Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott committed Feb 9, 2022
1 parent 3e24341 commit 78319df
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
1 change: 1 addition & 0 deletions FUNDING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Astro Project Funding

_Last Updated: 02-09-2022_

## Raising Funds

Astro is an MIT licensed open source project and completely free to use. However, the amount of effort needed to maintain and develop new features for Astro is not sustainable without proper financial backing. We need your help to achieve this.
Expand Down
16 changes: 8 additions & 8 deletions packages/astro/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1286,10 +1286,10 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve
```js
export default {
markdownOptions: {
remarkPlugins: ['remark-slug', ['remark-autolink-headings', { behavior: 'prepend' }]],
rehypePlugins: ['rehype-slug', ['rehype-autolink-headings', { behavior: 'prepend' }]],
},
markdownOptions: {
remarkPlugins: ['remark-slug', ['remark-autolink-headings', { behavior: 'prepend' }]],
rehypePlugins: ['rehype-slug', ['rehype-autolink-headings', { behavior: 'prepend' }]],
},
};
```

Expand All @@ -1309,10 +1309,10 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve

```js
export default {
name: '@matthewp/my-renderer',
server: './server.js',
client: './client.js',
hydrationPolyfills: ['./my-polyfill.js'],
name: '@matthewp/my-renderer',
server: './server.js',
client: './client.js',
hydrationPolyfills: ['./my-polyfill.js'],
};
```

Expand Down
2 changes: 1 addition & 1 deletion packages/astro/test/astro-attrs.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('Attributes', async () => {
};

for (const id of Object.keys(attrs)) {
const { attribute, value } = attrs[id]
const { attribute, value } = attrs[id];
const attr = $(`#${id}`).attr(attribute);
expect(attr).to.equal(value);
}
Expand Down
7 changes: 3 additions & 4 deletions packages/astro/test/astro-jsx.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { expect } from 'chai';
import { loadFixture } from './test-utils.js';

describe('JSX', () => {

let cwd = './fixtures/astro-jsx/';
let orders = [
['preact', 'react', 'solid'],
Expand All @@ -13,7 +12,7 @@ describe('JSX', () => {
['solid', 'preact', 'react'],
];
let fixtures = {};

before(async () => {
await Promise.all(
orders.map((renderers, n) =>
Expand All @@ -28,13 +27,13 @@ describe('JSX', () => {
)
);
});

it('Renderer order', () => {
it('JSX renderers can be defined in any order', async () => {
if (!Object.values(fixtures).length) {
throw new Error(`JSX renderers didn’t build properly`);
}

for (const [name, fixture] of Object.entries(fixtures)) {
const html = await fixture.readFile('/index.html');
expect(html, name).to.be.ok;
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/test/lit-element.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('LitElement test', () => {

const NODE_VERSION = parseFloat(process.versions.node);
const stripExpressionMarkers = (html) => html.replace(/<!--\/?lit-part-->/g, '');

before(async () => {
// @lit-labs/ssr/ requires Node 13.9 or higher
if (NODE_VERSION < 13.9) {
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/test/postcss.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('PostCSS', () => {
renderers: ['@astrojs/renderer-solid', '@astrojs/renderer-svelte', '@astrojs/renderer-vue'],
});
await fixture.build();

// get bundled CSS (will be hashed, hence DOM query)
const html = await fixture.readFile('/index.html');
const $ = cheerio.load(html);
Expand Down

0 comments on commit 78319df

Please sign in to comment.