Skip to content

Commit

Permalink
test: update import in samples
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Nov 8, 2024
1 parent 567cc2c commit 0ddb239
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion samples/api.concurrency.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from "assert";
import each from "each";
import each from "../lib/index.js";

const history = [];
const handler = (id) => {
Expand Down
2 changes: 1 addition & 1 deletion samples/api.end.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from "assert";
import each from "each";
import each from "../lib/index.js";

const history = [];
const handler = (id) => {
Expand Down
2 changes: 1 addition & 1 deletion samples/error.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from "assert";
import each from "each";
import each from "../lib/index.js";

try {
await each(2).call([
Expand Down
2 changes: 1 addition & 1 deletion samples/example.advanced.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from "assert";
import each from "each";
import each from "../lib/index.js";

const scheduler = each({ concurrency: true });
const result = await Promise.all([
Expand Down
2 changes: 1 addition & 1 deletion samples/example.simple.handlers.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from "assert";
import each from "each";
import each from "../lib/index.js";

const stack = [];
const result = await each(
Expand Down
2 changes: 1 addition & 1 deletion samples/example.simple.items.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from "assert";
import each from "each";
import each from "../lib/index.js";

const stack = [];
const result = await each(
Expand Down
2 changes: 1 addition & 1 deletion samples/handler.asynchronous.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from "assert";
import each from "each";
import each from "../lib/index.js";

const result = await each(
[{ id: "a" }, { id: "b" }, { id: "c" }, { id: "d" }],
Expand Down
2 changes: 1 addition & 1 deletion samples/handler.synchronous.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from "assert";
import each from "each";
import each from "../lib/index.js";

const result = await each(
[{ id: "a" }, { id: "b" }, { id: "c" }, { id: "d" }],
Expand Down
2 changes: 1 addition & 1 deletion samples/iteration.functions.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from "assert";
import each from "each";
import each from "../lib/index.js";

const result = await each([
// A synchronous function
Expand Down
2 changes: 1 addition & 1 deletion samples/iteration.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from "assert";
import each from "each";
import each from "../lib/index.js";

const result = await each([
// Item is a value
Expand Down
2 changes: 1 addition & 1 deletion samples/iteration.promises.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from "assert";
import each from "each";
import each from "../lib/index.js";

const result = await each([
// Instant resolution
Expand Down
2 changes: 1 addition & 1 deletion samples/mode_concurrent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from "assert";
import each from "each";
import each from "../lib/index.js";

let running = 0;
const result = await each(
Expand Down
2 changes: 1 addition & 1 deletion samples/mode_parallel.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from "assert";
import each from "each";
import each from "../lib/index.js";

let running = 0;
const result = await each(
Expand Down
2 changes: 1 addition & 1 deletion samples/mode_sequential.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from "assert";
import each from "each";
import each from "../lib/index.js";

let running = 0;
const result = await each(
Expand Down
2 changes: 1 addition & 1 deletion samples/options.fluent.false.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from "assert";
import each from "each";
import each from "../lib/index.js";

const promise = each({ fluent: false }).call(
() => new Promise((resolve) => resolve(1)),
Expand Down
2 changes: 1 addition & 1 deletion samples/options.fluent.true.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from "assert";
import each from "each";
import each from "../lib/index.js";

const result = await each()
.call(() => new Promise((resolve) => resolve(1)))
Expand Down
2 changes: 1 addition & 1 deletion samples/options.relax.false.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from "assert";
import each from "each";
import each from "../lib/index.js";

const scheduler = each();
const prom1 = scheduler.call(() => new Promise((resolve) => resolve(1)));
Expand Down
2 changes: 1 addition & 1 deletion samples/options.relax.true.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from "assert";
import each from "each";
import each from "../lib/index.js";

const scheduler = each({ relax: true });
const prom1 = scheduler.call(() => new Promise((resolve) => resolve(1)));
Expand Down
2 changes: 1 addition & 1 deletion samples/throttle.resume.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from "assert";
import each from "each";
import each from "../lib/index.js";

const stack = [];
const scheduler = each({ pause: true });
Expand Down
2 changes: 1 addition & 1 deletion samples/throttle.state.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from "assert";
import each from "each";
import each from "../lib/index.js";

let state = "paused";
const scheduler = each({ pause: true });
Expand Down

0 comments on commit 0ddb239

Please sign in to comment.