Last active
June 21, 2019 11:58
-
-
Save lgandecki/baed24108850d6ff471fc7cb5a4e4bcf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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