Skip to content

Commit

Permalink
Lint warnings were annoying me
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Jujou committed Apr 5, 2018
1 parent 068c84a commit e763c0a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions bin/cli.js
Expand Up @@ -3,6 +3,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE
'use strict';

/* eslint-disable no-console */
const sysPath = require('path');
const fs = require('fs');
const yargs = require('yargs');
Expand Down
1 change: 1 addition & 0 deletions recipes/gulp/gulpfile.js
Expand Up @@ -2,6 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE
'use strict';

/* eslint-disable no-console */
const gulp = require('gulp');
const connect = require('gulp-connect');
const PWMetrics = require('../../lib/');
Expand Down
1 change: 1 addition & 0 deletions test/cli.js
Expand Up @@ -7,6 +7,7 @@ const childProcess = require('child_process');
const expect = require('chai').expect;

/* eslint-env mocha */
/* eslint-disable no-unused-expressions */
describe('CLI', function() {
describe('url', () => {
it('should throw error if a url is not provided by cli', () => {
Expand Down
1 change: 1 addition & 0 deletions test/expectations.js
Expand Up @@ -8,6 +8,7 @@ const normalizedExpectations = require('./fixtures/mocks').normalizedExpectation
const expectationsData = require('./fixtures/run-expectations').expectations;

/* eslint-env mocha */
/* eslint-disable no-unused-expressions, no-console */
describe('Expectations', () => {
describe('checkExpectations', () => {
let logSpy;
Expand Down
6 changes: 5 additions & 1 deletion test/index.js
Expand Up @@ -7,6 +7,7 @@ const runOptions = require('./fixtures/run-options');
const dataMocks = require('./fixtures/mocks');

/* eslint-env mocha */
/* eslint-disable no-unused-expressions */
describe('PWMetrics', () => {
describe('public variables', () => {
it('should set class variables', () => {
Expand All @@ -32,7 +33,10 @@ describe('PWMetrics', () => {

describe('expectations', () => {
it('should set expectations', () => {
const pwMetrics = new PWMetrics(runOptions.publicVariables.url, runOptions.publicVariablesWithExpectations.opts);
const pwMetrics = new PWMetrics(
runOptions.publicVariables.url,
runOptions.publicVariablesWithExpectations.opts
);
expect(pwMetrics.expectations).to.be.equal(runOptions.publicVariablesWithExpectations.opts.expectations);
});
});
Expand Down

0 comments on commit e763c0a

Please sign in to comment.