Skip to content

Commit

Permalink
Add basic test to make CI happy
Browse files Browse the repository at this point in the history
  • Loading branch information
r-n-o committed Oct 10, 2023
1 parent eecd979 commit b96213d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/iframe-stamper/src/__tests__/iframe-test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { test, expect } from "@jest/globals";
import { IframeStamper } from "../index";

test("throws when instantiated outside of a browser environment", async function () {
expect(() => {
new IframeStamper({
iframeUrl: "https://recovery.tkhqlabs.xyz",
iframeContainerId: "my-container-id",
iframeElementId: "my-iframe-id",
});
}).toThrow("cannot initialize iframe in non-browser environment");
});

0 comments on commit b96213d

Please sign in to comment.