Skip to content

Commit

Permalink
squiggle
Browse files Browse the repository at this point in the history
  • Loading branch information
barnjamin committed Dec 27, 2023
1 parent 7056e86 commit 90c3673
Show file tree
Hide file tree
Showing 20 changed files with 891 additions and 1,834 deletions.
16 changes: 16 additions & 0 deletions platforms/algorand/__tests__/unit/address.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { AlgorandAddress } from "../../src";

describe("Algorand Address Tests", () => {
describe("Parse Address", () => {
test("An address parses", () => {
let address = new AlgorandAddress(
"6XHBAFTDDSGTD4AOR67SLCCY7HAQGYBUWCVP2DYPIE7HI7G7IPNOEYM6XE",
);
expect(address).toBeTruthy();
});

test("An invalid address is rejected", () => {
expect(() => new AlgorandAddress("bogusybogusybogus")).toThrow();
});
});
});
17 changes: 17 additions & 0 deletions platforms/algorand/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import type { JestConfigWithTsJest } from "ts-jest";

const jestConfig: JestConfigWithTsJest = {
preset: "ts-jest",
verbose: true,
modulePathIgnorePatterns: ["mocks"],
transform: {
"^.+\\.tsx?$": [
"ts-jest",
{
isolatedModules: true,
},
],
},
};

export default jestConfig;
3 changes: 2 additions & 1 deletion platforms/algorand/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"rebuild": "npm run clean && npm run build:cjs && npm run build:esm",
"clean": "rm -rf ./dist && rm -f ./*.tsbuildinfo",
"lint": "npm run prettier && eslint --fix",
"prettier": "prettier --write ./src"
"prettier": "prettier --write ./src",
"test": "jest --config ./jest.config.ts"
},
"dependencies": {
"@wormhole-foundation/connect-sdk": "^0.3.0-beta.5",
Expand Down
Loading

0 comments on commit 90c3673

Please sign in to comment.