Skip to content

Commit

Permalink
style(core): run lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMason committed Sep 19, 2020
1 parent 3ff7f2c commit 5682197
Show file tree
Hide file tree
Showing 24 changed files with 194 additions and 201 deletions.
10 changes: 5 additions & 5 deletions examples/jasmine-cli/src/sum.spec.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
describe('sum(a, b)', function() {
beforeEach(function() {
describe('sum(a, b)', function () {
beforeEach(function () {
this.sum = require('./sum');
});
it('is a function', function() {
it('is a function', function () {
expect(this.sum).toBeFunction();
});
it('returns a number', function() {
it('returns a number', function () {
expect(this.sum(1, 2)).toBeNumber();
});
it('add numbers correctly', function() {
it('add numbers correctly', function () {
expect(this.sum(1, 2)).toEqual(3);
});
});
6 changes: 3 additions & 3 deletions examples/karma/karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function(config) {
module.exports = function (config) {
config.set({
autoWatch: false,
basePath: '',
Expand All @@ -12,11 +12,11 @@ module.exports = function(config) {
plugins: [
'karma-chrome-launcher',
'karma-jasmine',
'karma-jasmine-matchers'
'karma-jasmine-matchers',
],
port: 9876,
preprocessors: {},
reporters: ['progress'],
singleRun: true
singleRun: true,
});
};
2 changes: 1 addition & 1 deletion examples/karma/src/sum.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
window.sum = function(a, b) {
window.sum = function (a, b) {
return a + b;
};
8 changes: 4 additions & 4 deletions examples/karma/src/sum.spec.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
describe('sum(a, b)', function() {
it('is a function', function() {
describe('sum(a, b)', function () {
it('is a function', function () {
expect(window.sum).toBeFunction();
});
it('returns a number', function() {
it('returns a number', function () {
expect(window.sum(1, 2)).toBeNumber();
});
it('add numbers correctly', function() {
it('add numbers correctly', function () {
expect(window.sum(1, 2)).toEqual(3);
});
});
2 changes: 1 addition & 1 deletion examples/protractor/conf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
exports.config = {
framework: 'jasmine',
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['node_modules/jasmine-expect/index.js', 'src/**/*.e2e.spec.js']
specs: ['node_modules/jasmine-expect/index.js', 'src/**/*.e2e.spec.js'],
};
12 changes: 6 additions & 6 deletions examples/protractor/src/calculator.e2e.spec.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
describe('Protractor Example', function() {
describe('Protractor', function() {
it('should be configured correctly', function() {
describe('Protractor Example', function () {
describe('Protractor', function () {
it('should be configured correctly', function () {
browser.get('http://juliemr.github.io/protractor-demo/');
expect(browser.getTitle()).toEqual('Super Calculator');
});
});
describe('Jasmine Matchers', function() {
it('should be configured correctly', function() {
expect(function() {}).toBeFunction();
describe('Jasmine Matchers', function () {
it('should be configured correctly', function () {
expect(function () {}).toBeFunction();
expect(666).toBeNumber();
});
});
Expand Down
28 changes: 14 additions & 14 deletions karma/base.conf.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function(config) {
module.exports = function (config) {
config.set({
autoWatch: false,
basePath: '..',
Expand All @@ -8,52 +8,52 @@ module.exports = function(config) {
dir: 'coverage',
instrumenterOptions: {
istanbul: {
noCompact: true
}
noCompact: true,
},
},
reporters: [
{
type: 'html',
subdir: 'report-html'
subdir: 'report-html',
},
{
type: 'lcov',
subdir: 'report-lcov'
subdir: 'report-lcov',
},
{
type: 'cobertura',
subdir: '.',
file: 'cobertura.txt'
file: 'cobertura.txt',
},
{
type: 'lcovonly',
subdir: '.',
file: 'report-lcovonly.txt'
file: 'report-lcovonly.txt',
},
{
type: 'teamcity',
subdir: '.',
file: 'teamcity.txt'
file: 'teamcity.txt',
},
{
type: 'text',
subdir: '.',
file: 'text.txt'
file: 'text.txt',
},
{
type: 'text-summary',
subdir: '.',
file: 'text-summary.txt'
}
]
file: 'text-summary.txt',
},
],
},
files: ['dist/jasmine-matchers.js', 'dist/jasmine-matchers.spec.js'],
frameworks: ['jasmine'],
logLevel: 'error',
preprocessors: {
'**/dist/jasmine-matchers.js': ['coverage']
'**/dist/jasmine-matchers.js': ['coverage'],
},
reporters: ['nested', 'coverage'],
singleRun: true
singleRun: true,
});
};
4 changes: 2 additions & 2 deletions karma/browserstack-android.conf.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const baseConfig = require('./browserstack.conf');

module.exports = function(config) {
module.exports = function (config) {
baseConfig({
set(base) {
base.browsers = ['android-8.0', 'android-8.1', 'android-9.0'];
config.set(base);
}
},
});
};
4 changes: 2 additions & 2 deletions karma/browserstack-chrome.conf.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const baseConfig = require('./browserstack.conf');

module.exports = function(config) {
module.exports = function (config) {
baseConfig({
set(base) {
base.browsers = ['chrome-69.0', 'chrome-70.0', 'chrome-71.0'];
config.set(base);
}
},
});
};
4 changes: 2 additions & 2 deletions karma/browserstack-firefox.conf.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const baseConfig = require('./browserstack.conf');

module.exports = function(config) {
module.exports = function (config) {
baseConfig({
set(base) {
base.browsers = ['firefox-62.0', 'firefox-63.0', 'firefox-64.0'];
config.set(base);
}
},
});
};
4 changes: 2 additions & 2 deletions karma/browserstack-ie.conf.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const baseConfig = require('./browserstack.conf');

module.exports = function(config) {
module.exports = function (config) {
baseConfig({
set(base) {
base.browsers = ['edge-16.0', 'edge-17.0', 'edge-18.0'];
config.set(base);
}
},
});
};
6 changes: 3 additions & 3 deletions karma/browserstack-ios.conf.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const baseConfig = require('./browserstack.conf');

module.exports = function(config) {
module.exports = function (config) {
baseConfig({
set(base) {
base.browsers = [
Expand All @@ -9,9 +9,9 @@ module.exports = function(config) {
'iphone-11.2',
'iphone-11.4',
'iphone-12.0',
'iphone-12.1'
'iphone-12.1',
];
config.set(base);
}
},
});
};
4 changes: 2 additions & 2 deletions karma/browserstack-opera.conf.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const baseConfig = require('./browserstack.conf');

module.exports = function(config) {
module.exports = function (config) {
baseConfig({
set(base) {
base.browsers = ['opera-12.16', 'opera-12.15'];
config.set(base);
}
},
});
};
4 changes: 2 additions & 2 deletions karma/browserstack-safari.conf.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const baseConfig = require('./browserstack.conf');

module.exports = function(config) {
module.exports = function (config) {
baseConfig({
set(base) {
base.browsers = ['safari-11.1', 'safari-12.0'];
config.set(base);
}
},
});
};
6 changes: 3 additions & 3 deletions karma/browserstack.conf.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
const baseConfig = require('./cloud.conf');
const platforms = require('./browserstack.json');

module.exports = function(config) {
module.exports = function (config) {
baseConfig({
set(base) {
base.browsers = Object.keys(platforms);
base.concurrency = 5;
base.customLaunchers = platforms;
base.browserStack = {
accessKey: process.env.BROWSERSTACK_ACCESS_KEY,
username: process.env.BROWSERSTACK_USERNAME
username: process.env.BROWSERSTACK_USERNAME,
};
config.set(base);
}
},
});
};
4 changes: 2 additions & 2 deletions karma/cloud.conf.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const baseConfig = require('./base.conf');

module.exports = function(config) {
module.exports = function (config) {
baseConfig({
set(base) {
base.browsers = [];
Expand All @@ -9,6 +9,6 @@ module.exports = function(config) {
base.logLevel = config.LOG_DEBUG;
base.transports = ['polling'];
config.set(base);
}
},
});
};
Loading

0 comments on commit 5682197

Please sign in to comment.