Skip to content

Commit

Permalink
remove type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshurajora committed Dec 14, 2023
1 parent 3f8c499 commit 1ba7803
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions index.test.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
// @ts-nocheck
import * as dotenv from "dotenv";
import { getShortLink } from "./index";

dotenv.config();

test("Should get a unique shorturl without any errors", async () => {
const response = await getShortLink({
username: process.env["YOURLS_USERNAME"] as string,
password: process.env["YOURLS_PASSWORD"] as string,
serverUrl: process.env["YOURLS_SERVER_URL"] as string,
username: process.env["YOURLS_USERNAME"],
password: process.env["YOURLS_PASSWORD"],
serverUrl: process.env["YOURLS_SERVER_URL"],
// A uniquely generated url
url: `https://example-${Date.now()}.com`,
});
Expand Down

0 comments on commit 1ba7803

Please sign in to comment.