mirror of
https://github.com/wassname/talk.git
synced 2026-08-09 12:30:42 +08:00
Fix types
This commit is contained in:
Generated
+3
-7
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user