mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
fixing tests
This commit is contained in:
Vendored
+2
-2
@@ -151,7 +151,7 @@ declare module "react-relay" {
|
||||
pendingVariables?: any;
|
||||
setVariables(variables: Object, onReadyStateChange?: OnReadyStateChange): void;
|
||||
forceFetch(variables: Object, onReadyStateChange?: OnReadyStateChange): void;
|
||||
hasOptimisticUpdate(record: any): boolean;
|
||||
getPendingTransactions(record: any): RelayMutationTransaction[];
|
||||
hasOptimisticUpdate(record?: any): boolean;
|
||||
getPendingTransactions(record?: any): RelayMutationTransaction[];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,10 +74,16 @@ class StubbedArtwork extends React.Component<null, null> {
|
||||
const props = {
|
||||
artwork: { title: "CHAMPAGNE FORMICA FLAG" },
|
||||
relay: {
|
||||
route: {
|
||||
name: "champagne"
|
||||
},
|
||||
variables: {
|
||||
artworkID: "champagne-formica-flag",
|
||||
},
|
||||
setVariables: () => {},
|
||||
forceFetch: () => {},
|
||||
hasOptimisticUpdate: () => false,
|
||||
getPendingTransactions: (): Relay.RelayMutationTransaction[] => undefined,
|
||||
}
|
||||
}
|
||||
return <ArtworkContainer {...props} />
|
||||
|
||||
Reference in New Issue
Block a user