Skip to content

Commit

Permalink
[ci] yarn format
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp authored and actions-user committed Nov 18, 2021
1 parent 53d9cf5 commit 637cf49
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions packages/astro/test/dev-routing.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { loadFixture } from './test-utils.js';
describe('Development Routing', () => {
describe('No site config', () => {
/** @type {import('./test-utils').Fixture} */
let fixture
let fixture;
/** @type {import('./test-utils').DevServer} */
let devServer;

Expand All @@ -15,7 +15,7 @@ describe('Development Routing', () => {
});

after(async () => {
devServer && await devServer.stop();
devServer && (await devServer.stop());
});

it('200 when loading /', async () => {
Expand All @@ -26,12 +26,12 @@ describe('Development Routing', () => {
it('200 when loading non-root page', async () => {
const response = await fixture.fetch('/another');
expect(response.status).to.equal(200);
})
});
});

describe('No subpath used', () => {
/** @type {import('./test-utils').Fixture} */
let fixture
let fixture;
/** @type {import('./test-utils').DevServer} */
let devServer;

Expand All @@ -41,7 +41,7 @@ describe('Development Routing', () => {
});

after(async () => {
devServer && await devServer.stop();
devServer && (await devServer.stop());
});

it('200 when loading /', async () => {
Expand All @@ -52,12 +52,12 @@ describe('Development Routing', () => {
it('200 when loading non-root page', async () => {
const response = await fixture.fetch('/another');
expect(response.status).to.equal(200);
})
});
});

describe('Subpath with trailing slash', () => {
/** @type {import('./test-utils').Fixture} */
let fixture
let fixture;
/** @type {import('./test-utils').DevServer} */
let devServer;

Expand All @@ -67,7 +67,7 @@ describe('Development Routing', () => {
});

after(async () => {
devServer && await devServer.stop();
devServer && (await devServer.stop());
});

it('404 when loading /', async () => {
Expand All @@ -93,7 +93,7 @@ describe('Development Routing', () => {

describe('Subpath without trailing slash', () => {
/** @type {import('./test-utils').Fixture} */
let fixture
let fixture;
/** @type {import('./test-utils').DevServer} */
let devServer;

Expand All @@ -103,7 +103,7 @@ describe('Development Routing', () => {
});

after(async () => {
devServer && await devServer.stop();
devServer && (await devServer.stop());
});

it('404 when loading /', async () => {
Expand All @@ -126,4 +126,4 @@ describe('Development Routing', () => {
expect(response.status).to.equal(200);
});
});
});
});

0 comments on commit 637cf49

Please sign in to comment.