Skip to content

Commit

Permalink
Selector without element is now not floating
Browse files Browse the repository at this point in the history
  • Loading branch information
gooddaytoday committed May 26, 2022
1 parent 33b6136 commit 7112475
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/core/fetchIntroSteps.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ describe("fetchIntroSteps", () => {
steps: [
{
element: "#element_does_not_exist",
position: "top",
intro: "hello world",
},
{
Expand All @@ -23,7 +24,7 @@ describe("fetchIntroSteps", () => {

expect(steps.length).toBe(2);

expect(steps[0].position).toBe("floating");
expect(steps[0].position).toBe("top");
expect(steps[0].intro).toBe("hello world");
expect(steps[0].step).toBe(1);

Expand Down Expand Up @@ -80,7 +81,7 @@ describe("fetchIntroSteps", () => {
expect(steps[1].intro).toBe("second");
expect(steps[1].step).toBe(2);

expect(steps[2].position).toBe("floating");
expect(steps[2].position).toBe("bottom");
expect(steps[2].intro).toBe("third");
expect(steps[2].step).toBe(3);
});
Expand Down

0 comments on commit 7112475

Please sign in to comment.