Skip to content

Commit

Permalink
fixing up linting errors
Browse files Browse the repository at this point in the history
- on imports using .js suffix
- on wrong empty lines
- ...
  • Loading branch information
nxmatic committed Jan 16, 2024
1 parent ac58821 commit 2fc7d1b
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 29 deletions.
1 change: 0 additions & 1 deletion app/scripts.babel/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,6 @@ limitations under the License.
}, 2500);
}


konamiCanada(() => {
k();
console.log('O Canada!');
Expand Down
2 changes: 1 addition & 1 deletion test/features/step_definitions/about.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ limitations under the License.

const { Given, Then, When } = require('cucumber');
const expect = require('chai').expect;
const After = require('./support/hooks.js').After;
const After = require('./support/hooks').After;

Then(/I see the version number/, () => {
$('#version').waitForDisplayed();
Expand Down
14 changes: 7 additions & 7 deletions test/features/step_definitions/designer-live-preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ limitations under the License.

const { Given, Then, When } = require('cucumber');
const chai = require('chai');
const login = require('./support/fixtures/auth.js').login;
const findTabByTitle = require('./support/fixtures/nav.js').findTabByTitle;
const modifyDashboard = require('./support/client.js').modifyDashboard;
const getDashboard = require('./support/client.js').getDashboard;
const After = require('./support/hooks.js').After;
const AfterAll = require('./support/hooks.js').AfterAll;
const Before = require('./support/hooks.js').Before;
const login = require('./support/fixtures/auth').login;
const findTabByTitle = require('./support/fixtures/nav').findTabByTitle;
const modifyDashboard = require('./support/client').modifyDashboard;
const getDashboard = require('./support/client').getDashboard;
const After = require('./support/hooks').After;
const AfterAll = require('./support/hooks').AfterAll;
const Before = require('./support/hooks').Before;

const assert = chai.assert;
const expect = chai.expect;
Expand Down
6 changes: 3 additions & 3 deletions test/features/step_definitions/display.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ limitations under the License.
const { Given, Then, When } = require('cucumber');
const chrome = require('sinon-chrome');
const chai = require('chai');
const inject = require('./support/fixtures/mocks.js').inject;
const login = require('./support/fixtures/auth.js').login;
const After = require('./support/hooks.js').After;
const inject = require('./support/fixtures/mocks').inject;
const login = require('./support/fixtures/auth').login;
const After = require('./support/hooks').After;

const assert = chai.assert;
const expect = chai.expect;
Expand Down
14 changes: 7 additions & 7 deletions test/features/step_definitions/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ limitations under the License.
const { Given, Then, When } = require('cucumber');
const chrome = require('sinon-chrome');
const chai = require('chai');
const create = require('./support/fixtures/documents.js').create;
const init = require('./support/fixtures/documents.js').init;
const inject = require('./support/fixtures/mocks.js').inject;
const login = require('./support/fixtures/auth.js').login;
const findTabByTitle = require('./support/fixtures/nav.js').findTabByTitle;
const openNuxeo = require('./support/fixtures/nav.js').openNuxeo;
const After = require('./support/hooks.js').After;
const create = require('./support/fixtures/documents').create;
const init = require('./support/fixtures/documents').init;
const inject = require('./support/fixtures/mocks').inject;
const login = require('./support/fixtures/auth').login;
const findTabByTitle = require('./support/fixtures/nav').findTabByTitle;
const openNuxeo = require('./support/fixtures/nav').openNuxeo;
const After = require('./support/hooks').After;

const nxPath = 'http://localhost:8080/nuxeo';
const assert = chai.assert;
Expand Down
2 changes: 1 addition & 1 deletion test/features/step_definitions/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ limitations under the License.

const { Given, Then, When } = require('cucumber');
const chai = require('chai');
const After = require('./support/hooks.js').After;
const After = require('./support/hooks').After;

const assert = chai.assert;
const expect = chai.expect;
Expand Down
2 changes: 1 addition & 1 deletion test/features/step_definitions/restart.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
const { Given, Then, When } = require('cucumber');
const expect = require('chai').expect;
const Nuxeo = require('nuxeo');
const After = require('./support/hooks.js').After;
const After = require('./support/hooks').After;

const nuxeo = new Nuxeo({
baseURL: 'http://localhost:8080/nuxeo/',
Expand Down
2 changes: 1 addition & 1 deletion test/features/step_definitions/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ limitations under the License.

const { Given, Then, When } = require('cucumber');
const expect = require('chai').expect;
const After = require('./support/hooks.js').After;
const After = require('./support/hooks').After;

When(/I enter (.+) in (.+) input/, (text, selector) => {
browser.$(`#${selector}`).addValue(text);
Expand Down
8 changes: 4 additions & 4 deletions test/features/step_definitions/studio.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ limitations under the License.

const { Given, Then, When } = require('cucumber');
const chai = require('chai');
const login = require('./support/fixtures/auth.js').login;
const modifyDashboard = require('./support/client.js').modifyDashboard;
const After = require('./support/hooks.js').After;
const AfterAll = require('./support/hooks.js').AfterAll;
const login = require('./support/fixtures/auth').login;
const modifyDashboard = require('./support/client').modifyDashboard;
const After = require('./support/hooks').After;
const AfterAll = require('./support/hooks').AfterAll;

const assert = chai.assert;
const expect = chai.expect;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

const nuxeo = require('./../client.js').nuxeo;
const nuxeo = require('../client').nuxeo;

function init(docType) {
const title = `My_${docType}`;
Expand Down
2 changes: 1 addition & 1 deletion test/features/step_definitions/support/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ limitations under the License.
*/

const { After, AfterAll, Before } = require('cucumber');
const revertDashboard = require('./client.js').revertDashboard;
const revertDashboard = require('./client').revertDashboard;

function isTagged(tag, scenario) {
return scenario.pickle.tags.find((o) => o.name === tag);
Expand Down
2 changes: 1 addition & 1 deletion test/features/step_definitions/toggles.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ limitations under the License.
*/

const { Given, Then, When } = require('cucumber');
const After = require('./support/hooks.js').After;
const After = require('./support/hooks').After;

function toggleTraces(button, page) {
if (page === 'Popup extension') {
Expand Down

0 comments on commit 2fc7d1b

Please sign in to comment.