Skip to content

Commit

Permalink
Fix Babel runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
Cretezy committed Aug 13, 2018
1 parent d3b2ee8 commit 0e3f5b0
Show file tree
Hide file tree
Showing 4 changed files with 2,223 additions and 1,795 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## v1.0.5 (2018-08-13)

- Upgrade dependencies
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "braintree-web-drop-in-react",
"version": "1.0.4",
"version": "1.0.5",
"description": "React component for Braintree Web Drop-In (v3)",
"main": "dist/index.js",
"scripts": {
Expand All @@ -26,16 +26,16 @@
"react-dom": ">=15.1.0"
},
"dependencies": {
"braintree-web-drop-in": "^1.11.0",
"prop-types": ">=15.6.0",
"@noderize/runtime": "^0.3.11"
"braintree-web-drop-in": "^1.12.0",
"prop-types": ">=15.1.0",
"@noderize/runtime": "^0.7.5"
},
"devDependencies": {
"@babel/preset-react": "^7.0.0-beta.40",
"@noderize/scripts": "^0.3.11",
"react": ">=15.1.0",
"react-dom": ">=15.1.0",
"react-test-renderer": "^16.2.0"
"@babel/preset-react": "^7.0.0-rc.1",
"@noderize/scripts": "^0.7.5",
"react": ">=16.4.2",
"react-dom": ">=16.4.2",
"react-test-renderer": "^16.4.2"
},
"noderize": {
"babel": {
Expand Down
4 changes: 2 additions & 2 deletions src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import DropIn from "./index";
describe("DropIn", () => {
it("Calls dropin.create on instantiation", () => {
const braintreeWebDropIn = require("braintree-web-drop-in");
braintreeWebDropIn.create = jest.genMockFunction();
braintreeWebDropIn.create = jest.fn();

const component = renderer.create(
<DropIn options={{ authorization: "bogus" }} />
Expand All @@ -17,7 +17,7 @@ describe("DropIn", () => {

it("Calls teardown on destruction", done => {
const braintreeWebDropIn = require("braintree-web-drop-in");
const teardownMock = jest.genMockFunction();
const teardownMock = jest.fn();
braintreeWebDropIn.create = () =>
new Promise(resolve => {
resolve({ teardown: teardownMock });
Expand Down
Loading

0 comments on commit 0e3f5b0

Please sign in to comment.