Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// @flow
import { ApolloClient, ApolloLink, ApolloCache } from "apollo-client";
import { describe, it } from "flow-typed-test";
import ApolloClientDefault from "apollo-client";
const link = new ApolloLink();
const cache = new ApolloCache();
describe("apollo-client", () => {
describe("ApolloClient initialization", () => {
it("passes when passed correct configuration", () => {
new ApolloClient({
link,
cache
});
});
it("query function passes", async () => {
const client = new ApolloClient({
link,
cache
});
const result = await client.query({