Skip to content

Commit

Permalink
fix test lint imports
Browse files Browse the repository at this point in the history
  • Loading branch information
cgdibble committed Jan 8, 2024
1 parent c763650 commit 83ec9da
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/meta.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
import { describe, it, vi, beforeEach, expect } from "vitest";
import { getCurrentScript, memoize } from "@krakenjs/belter/src";

import { getSDKMeta } from "./meta";
import { makeMockScriptElement } from "../test/helpers";

import { getSDKMeta } from "./meta";

const clientId = "foobar123";
const mockScriptSrc = `https://test.paypal.com/sdk/js?client-id=${clientId}`;

Expand Down
3 changes: 2 additions & 1 deletion src/script.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import { describe, it, afterEach, beforeEach, expect, vi } from "vitest";
import { base64encode, getCurrentScript, memoize } from "@krakenjs/belter/src";

import { makeMockScriptElement } from "../test/helpers";

import {
getClientID,
getIntent,
Expand Down Expand Up @@ -30,7 +32,6 @@ import {
isChildWindow,
} from "./script";
import { CLIENT_ID_ALIAS } from "./config";
import { makeMockScriptElement } from "../test/helpers";

const clientId = "foobar123";
const mockScriptSrc = `https://test.paypal.com/sdk/js?client-id=${clientId}`;
Expand Down
3 changes: 2 additions & 1 deletion src/session.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
import { describe, it, afterEach, expect, vi } from "vitest";
import { getCurrentScript, memoize } from "@krakenjs/belter/src";

import { makeMockScriptElement } from "../test/helpers";

import {
getStorageState,
getStorageID,
getSessionState,
getClientMetadataID,
} from "./session";
import { makeMockScriptElement } from "../test/helpers";

const clientId = "foobar123";
const mockScriptSrc = `https://test.paypal.com/sdk/js?client-id=${clientId}`;
Expand Down
3 changes: 2 additions & 1 deletion src/tracking.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/* @flow */
import { describe, it, vi, expect } from "vitest";

import { getSDKInitTime, setupLogger } from "./tracking";
import { makeMockScriptElement } from "../test/helpers";

import { getSDKInitTime, setupLogger } from "./tracking";

const clientId = "foobar123";
const mockScriptSrc = `https://test.paypal.com/sdk/js?client-id=${clientId}`;

Expand Down

0 comments on commit 83ec9da

Please sign in to comment.