Skip to content

Instantly share code, notes, and snippets.

@lgandecki
Last active June 21, 2019 11:58
Show Gist options
  • Save lgandecki/baed24108850d6ff471fc7cb5a4e4bcf to your computer and use it in GitHub Desktop.
Save lgandecki/baed24108850d6ff471fc7cb5a4e4bcf to your computer and use it in GitHub Desktop.
it("should be 0 for an item with a price over 1000", async () => {
const mocks = { Product: () => ({ price: 1001 }) };
const result = await executeGraphql({ query, service, mocks });
expect(result.data._getProduct.shippingEstimate).toStrictEqual(0);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment