mirror of
https://github.com/wassname/talk.git
synced 2026-08-09 12:30:42 +08:00
Add integration test
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import sinon, { SinonStub } from "sinon";
|
||||
|
||||
export default function createSinonStub(
|
||||
...callbacks: Array<(s: SinonStub) => void>
|
||||
): SinonStub {
|
||||
const stub = sinon.stub();
|
||||
callbacks.forEach(cb => cb(stub));
|
||||
return stub;
|
||||
}
|
||||
@@ -3,6 +3,7 @@ export {
|
||||
CreateRelayEnvironmentParams,
|
||||
} from "./createRelayEnvironment";
|
||||
export { default as createFluentBundle } from "./createFluentBundle";
|
||||
export { default as createSinonStub } from "./createSinonStub";
|
||||
export {
|
||||
default as removeFragmentRefs,
|
||||
NoFragmentRefs,
|
||||
|
||||
Reference in New Issue
Block a user