Skip to content

Commit

Permalink
More JS lint
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHenryIE committed Feb 6, 2023
1 parent 3e6146d commit 2de2610
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* External dependencies
*/
import { registerPaymentMethod } from '@woocommerce/blocks-registry';
import { decodeEntities } from '@wordpress/html-entities';
import { getSetting } from '@woocommerce/settings';
Expand Down
2 changes: 0 additions & 2 deletions tests/e2e/config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,3 @@ const jestConfig = useE2EJestConfig( {
} );

module.exports = jestConfig;

defaultJson = 'default.json';
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const {
clearAndFillInput,
} = require( '@woocommerce/e2e-utils' );

const configureBitcoinXpub = async ( dispatch ) => {
const configureBitcoinXpub = async () => {
await merchant.openSettings( 'checkout', 'bitcoin_gateway' );

// TODO: read from env.secret.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { shopper, uiUnblocked } = require( '@woocommerce/e2e-utils' );
const config = require( 'config' );
const simpleProductName = config.get( 'products.simple.name' );

const placeBitcoinOrderBefore = async ( dispatch ) => {
const placeBitcoinOrderBefore = async () => {
await shopper.goToShop();

await shopper.addToCartFromShopPage( simpleProductName );
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* External dependencies
*/
import { expect } from '@jest/globals';

const {
Expand Down
7 changes: 5 additions & 2 deletions tests/e2e/specs/bh-wc-bitcoin-gateway/refresh-details.test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* External dependencies
*/
import { expect } from '@jest/globals';

// Fix bugs when refreshing the payment details box (i.e. looking for new transactions).

// 1. Place an order, arrive on the Thank You page, press refresh.
Expand All @@ -6,8 +11,6 @@
// 2. Place an order, arrive on the Thank You page, press refresh twice.
// First refresh is overwriting data needed for subsequent requests.

import { expect } from '@jest/globals';

const {
uiUnblocked,
merchant,
Expand Down

0 comments on commit 2de2610

Please sign in to comment.