Fix types

This commit is contained in:
Chi Vinh Le
2018-09-06 00:07:14 +02:00
parent 46ff3dea89
commit 2bf9b5f2c1
4 changed files with 9 additions and 8 deletions
+3 -7
View File
@@ -2162,13 +2162,9 @@
}
},
"@types/recompose": {
"version": "0.26.4",
"resolved": "https://registry.npmjs.org/@types/recompose/-/recompose-0.26.4.tgz",
"integrity": "sha512-QOLPlsBxn/yOxSv4Au66kd8KvYZRCgZA3vV5pNZ6YTEY4GeDHNoYL+sCnbzGIcmWDYoN7PUNZSopaGhvHQperw==",
"dev": true,
"requires": {
"@types/react": "*"
}
"version": "github:coralproject/patched#3ca0deec868322739fc0d750398fd97735d27aac",
"from": "github:coralproject/patched#types/recompose",
"dev": true
},
"@types/relateurl": {
"version": "0.2.28",
+1 -1
View File
@@ -133,7 +133,7 @@
"@types/react-relay": "^1.3.9",
"@types/react-responsive": "^3.0.1",
"@types/react-test-renderer": "^16.0.1",
"@types/recompose": "^0.26.4",
"@types/recompose": "github:coralproject/patched#types/recompose",
"@types/relay-runtime": "^1.3.6",
"@types/sane": "^2.0.0",
"@types/sinon": "^5.0.1",
@@ -19,6 +19,7 @@ it("renders correctly", () => {
hasMore: false,
disableShowAll: false,
indentLevel: 1,
me: null,
};
const wrapper = shallow(<ReplyListN {...props} />);
expect(wrapper).toMatchSnapshot();
@@ -33,6 +34,7 @@ describe("when there is more", () => {
hasMore: true,
disableShowAll: false,
indentLevel: 1,
me: null,
};
const wrapper = shallow(<ReplyListN {...props} />);
@@ -26,6 +26,7 @@ it("renders correctly", () => {
hasMore: noop,
isLoading: noop,
} as any,
me: null,
};
const wrapper = shallow(<ReplyListContainerN {...props} />);
expect(wrapper).toMatchSnapshot();
@@ -44,6 +45,7 @@ it("renders correctly when replies are null", () => {
hasMore: noop,
isLoading: noop,
} as any,
me: null,
};
const wrapper = shallow(<ReplyListContainerN {...props} />);
expect(wrapper).toMatchSnapshot();
@@ -66,6 +68,7 @@ describe("when has more replies", () => {
isLoading: () => false,
loadMore: (_: any, callback: () => void) => (finishLoading = callback),
} as any,
me: null,
};
let wrapper: ShallowWrapper;