Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function runGenerator(generator: unknown) {
return generator.run();
}

it("Should accept an object where the generator is a function", () => {
it("Should accept an object with a function run", () => {
const result = runGenerator({
run: () => "hello",
});
Expand All @@ -18,7 +18,7 @@ it("Should accept an object where the generator is a function", () => {
type test1 = Expect<Equal<typeof result, string>>;
});

it("Should accept an object where the generator is a function", () => {
it("Should accept an argument where the generator is a function", () => {
const result = runGenerator(() => "hello");

expect(result).toBe("hello");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function runGenerator(generator: { run: () => string } | (() => string)) {
return generator.run();
}

it("Should accept an object where the generator is a function", () => {
it("Should accept an object with a function run", () => {
const result = runGenerator({
run: () => "hello",
});
Expand All @@ -20,7 +20,7 @@ it("Should accept an object where the generator is a function", () => {
type test1 = Expect<Equal<typeof result, string>>;
});

it("Should accept an object where the generator is a function", () => {
it("Should accept an argument where the generator is a function", () => {
const result = runGenerator(() => "hello");

expect(result).toBe("hello");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function runGenerator(generator: { run: () => string } | (() => string)) {
return generator.run();
}

it("Should accept an object where the generator is a function", () => {
it("Should accept an object with a function run", () => {
const result = runGenerator({
run: () => "hello",
});
Expand All @@ -18,7 +18,7 @@ it("Should accept an object where the generator is a function", () => {
type test1 = Expect<Equal<typeof result, string>>;
});

it("Should accept an object where the generator is a function", () => {
it("Should accept an argument where the generator is a function", () => {
const result = runGenerator(() => "hello");

expect(result).toBe("hello");
Expand Down