Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeAstapov committed Sep 24, 2024
1 parent efe169e commit 6aee47a
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion addon-test-support/-private/mock-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ let createMock = function (
method,
statusCode,
response,
responseHeaders
responseHeaders,
) {
let origin = false;

Expand Down
2 changes: 1 addition & 1 deletion config/addon-docs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env node */
/* eslint-disable n/no-unpublished-require */
'use strict';

const AddonDocsConfig = require('ember-cli-addon-docs/lib/config');
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = {
});
} catch (err) {
throw new Error(
`Unable to find FastBoot. Did you forget to add ember-cli-fastboot to your app? ${err}`
`Unable to find FastBoot. Did you forget to add ember-cli-fastboot to your app? ${err}`,
);
}
},
Expand Down
12 changes: 6 additions & 6 deletions lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ function createMockRequest(app) {
.reply(
req.body.statusCode,
req.body.response,
req.body.responseHeaders
req.body.responseHeaders,
);

res.json({ mocks: mock.pendingMocks() });
}
},
);
}

Expand All @@ -48,7 +48,7 @@ function createFastbootTest(app, callback) {
const headers = Object.assign(
{},
req.headers,
JSONfn.parse(req.body.options).headers || {}
JSONfn.parse(req.body.options).headers || {},
);

const defaultOptions = {
Expand All @@ -64,7 +64,7 @@ function createFastbootTest(app, callback) {

const options = Object.assign(
defaultOptions,
JSONfn.parse(req.body.options)
JSONfn.parse(req.body.options),
);

res.set('x-fastboot-testing', true);
Expand Down Expand Up @@ -101,7 +101,7 @@ function makeFastbootTestingConfig(config, pkg) {

const fastbootTestConfigPath = path.resolve(
configPath,
'fastboot-testing.js'
'fastboot-testing.js',
);

let customized = {};
Expand All @@ -114,7 +114,7 @@ function makeFastbootTestingConfig(config, pkg) {
} else {
deprecate(
() => Object.assign(customized, fastbootTestConfig),
`Exporting an object from ${fastbootTestConfigPath} has been deprecated. Please export a function which returns an object instead.`
`Exporting an object from ${fastbootTestConfigPath} has been deprecated. Please export a function which returns an object instead.`,
)();
}
}
Expand Down
4 changes: 2 additions & 2 deletions tests/fastboot/generic-interceptors-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module('Fastboot | generic interceptor', function (hooks) {

assert.rejects(
visit('/'),
/We were unable to render \/. Is your test suite blocking or intercepting HTTP requests\? Error: Pretender intercepted POST \/__fastboot-testing but encountered an error: Blocked/
/We were unable to render \/. Is your test suite blocking or intercepting HTTP requests\? Error: Pretender intercepted POST \/__fastboot-testing but encountered an error: Blocked/,
);

server.shutdown();
Expand All @@ -43,7 +43,7 @@ module('Fastboot | generic interceptor', function (hooks) {

assert.rejects(
visit('/'),
/We were unable to render \/. Is your test suite blocking or intercepting HTTP requests\?/
/We were unable to render \/. Is your test suite blocking or intercepting HTTP requests\?/,
);

server.shutdown();
Expand Down
2 changes: 1 addition & 1 deletion tests/fastboot/mirage-interceptors-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module('Fastboot | mirage interceptor', function (hooks) {
test('it doesnt work if mirage blocks our http request to ember-cli', async function (assert) {
assert.rejects(
visit('/'),
/It looks like Mirage is intercepting ember-cli-fastboot-testing's attempt to render \//
/It looks like Mirage is intercepting ember-cli-fastboot-testing's attempt to render \//,
);
});
});
2 changes: 1 addition & 1 deletion tests/fastboot/network-mocking-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module('Fastboot | network mocking', function (hooks) {
{
errors: [{ title: 'Not found' }],
},
404
404,
);

await visit('/examples/network/notes/1');
Expand Down
4 changes: 2 additions & 2 deletions tests/fastboot/redirects-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module('FastBoot | redirects test', function (hooks) {

test('redirects with a transition to', async function (assert) {
let { headers, statusCode, url } = await visit(
'/examples/redirects/transition-to'
'/examples/redirects/transition-to',
);

assert.strictEqual(statusCode, 307);
Expand All @@ -16,7 +16,7 @@ module('FastBoot | redirects test', function (hooks) {

test('redirects with a replace with', async function (assert) {
let { headers, statusCode, url } = await visit(
'/examples/redirects/replace-with'
'/examples/redirects/replace-with',
);

assert.strictEqual(statusCode, 307);
Expand Down

0 comments on commit 6aee47a

Please sign in to comment.