Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: run prettier #98

Merged
merged 1 commit into from
May 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion browser-test/browser-test-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async function main() {

const server = await listen(app, port);
console.log(`[http server] I'm listening on port ${port}! Starting karma.`);
const result = await execa('karma', ['start'], { stdio: 'inherit' });
const result = await execa('karma', ['start'], {stdio: 'inherit'});
server.close();
console.log(
`[http server] Karma has finished! I'm no longer listening on port ${port}!`
Expand Down
6 changes: 3 additions & 3 deletions browser-test/test.browser.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import assert from 'assert';

import { request } from '../src/index';
import {request} from '../src/index';
const port = 7172; // should match the port defined in `webserver.ts`

describe('💻 browser tests', () => {
it('should just work from browser', async () => {
const result = await request({ url: `http://localhost:${port}/path` });
const result = await request({url: `http://localhost:${port}/path`});
assert.strictEqual(result.status, 200);
assert.strictEqual(result.data, 'response');
});

it('should pass querystring parameters from browser', async () => {
const result = await request({
url: `http://localhost:${port}/querystring`,
params: { query: 'value' },
params: {query: 'value'},
});
assert.strictEqual(result.status, 200);
assert.strictEqual(result.data, 'value');
Expand Down
Loading