Skip to content

Commit

Permalink
chore(tests/quoteCombine): skip fake test when FETCH_DEvEL=nocache
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed Apr 8, 2021
1 parent 264ed17 commit 7250d1d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/other/quoteCombine.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ describe("quoteCombine", () => {
expect(() => yf.quoteCombine([])).toThrow(/string/);
});

it("throws on quote() error", () => {
const opts = { devel: "weirdJsonResult.fake.json" };
const promise = yf.quoteCombine("fake", undefined, opts);
jest.runAllTimers();
return expect(promise).rejects.toThrow(/Unexpected/);
});
if (process.env.FETCH_DEVEL !== "nocache")
it("throws on quote() error", () => {
const opts = { devel: "weirdJsonResult.fake.json" };
const promise = yf.quoteCombine("fake", undefined, opts);
jest.runAllTimers();
return expect(promise).rejects.toThrow(/Unexpected/);
});
});

0 comments on commit 7250d1d

Please sign in to comment.