Skip to content

Commit

Permalink
tests restructure
Browse files Browse the repository at this point in the history
  • Loading branch information
binrysearch committed Jun 16, 2024
1 parent 40dd5a7 commit 79d872d
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/jest/util/cookie.test.ts → src/util/cookie.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
getCookie,
setCookie,
deleteCookie,
} from "../../../src/util/cookie";
} from "./cookie";

describe("cookie", () => {
let _cookie = "";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import createElement from "../../../src/util/createElement";
import createElement from "./createElement";

describe("createElement", () => {
test("should create an element", () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import _createElement from "../../../src/util/createElement";
import elementInViewport from "../../../src/util/elementInViewport";
import _createElement from "./createElement";
import elementInViewport from "./elementInViewport";

describe("elementInViewport", () => {
test("should return true when element is in viewport", () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import isFunction from "../../../src/util/isFunction";
import isFunction from "./isFunction";

describe("isFunction", () => {
it("should return false when string is passed", () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import setStyle from "../../../src/util/setStyle";
import setStyle from "./setStyle";

describe("setStyle", () => {
test("should set style when the list is empty", () => {
Expand Down
4 changes: 2 additions & 2 deletions tests/jest/util/stamp.test.ts → src/util/stamp.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { IntroJs } from "../../../src/intro";
import stamp from "../../../src/util/stamp";
import { IntroJs } from "../intro";
import stamp from "./stamp";

describe("stamp", () => {
test("should stamp an IntroJS object", () => {
Expand Down

0 comments on commit 79d872d

Please sign in to comment.