Skip to content

Commit

Permalink
Forgot to add files :)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbloomf committed Oct 23, 2019
1 parent 768c7ef commit 0ff35cf
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@
"@automattic/webpack-extensive-lodash-replacement-plugin": "file:./packages/webpack-extensive-lodash-replacement-plugin",
"@automattic/webpack-inline-constant-exports-plugin": "file:./packages/webpack-inline-constant-exports-plugin",
"@automattic/composite-checkout": "file:./packages/composite-checkout",
"@testing-library/react": "9.3.0",
"@types/classnames": "2.2.9",
"@types/debug": "4.1.4",
"@types/lodash": "4.14.144",
Expand Down
6 changes: 5 additions & 1 deletion packages/composite-checkout/jest.config.js
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
module.exports = { rootDir: __dirname, testMatch: [ '**/test/**/*.[jt]s?(x)' ] };
module.exports = {
rootDir: __dirname,
testMatch: [ '**/test/**/*.[jt]s?(x)' ],
modulePathIgnorePatterns: [ 'enzyme-adapter.js' ],
};
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* External dependencies
*/
import React from 'react';
import { shallow, mount } from '../enzyme-adapter';
import { shallow } from '../enzyme-adapter';

/**
* Internal dependencies
Expand Down
4 changes: 2 additions & 2 deletions packages/composite-checkout/test/components/checkout.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ test( 'When we enter checkout, the line items and total are rendered', () => {
amount: { currency: 'USD', value: 5500, displayValue: '$55' },
} }
onSuccess={ () => {
console.log( 'Success :)' );
return;
} }
onFailure={ () => {
console.log( 'Failure :(' );
return;
} }
successRedirectUrl="#"
failureRedirectUrl="#"
Expand Down

0 comments on commit 0ff35cf

Please sign in to comment.