UNPKG

@dillonkearns/elm-graphql

Version:

<img src="https://cdn.jsdelivr.net/gh/martimatix/logo-graphqelm/logo.svg" alt="dillonearns/elm-graphql logo" width="40%" align="right">

38 lines (30 loc) 825 B
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const HookTester = require("./HookTester"); const AsyncParallelHook = require("../AsyncParallelHook"); const AsyncParallelBailHook = require("../AsyncParallelBailHook"); describe("AsyncParallelHook", () => { it( "should have to correct behavior", async () => { const tester = new HookTester(args => new AsyncParallelHook(args)); const result = await tester.run(); expect(result).toMatchSnapshot(); }, 15000 ); }); describe("AsyncParallelBailHook", () => { it( "should have to correct behavior", async () => { const tester = new HookTester(args => new AsyncParallelBailHook(args)); const result = await tester.run(); expect(result).toMatchSnapshot(); }, 15000 ); });