|
1 | 1 | require("dotenv").config();
|
2 |
| -import { test, jest } from "@jest/globals"; |
| 2 | +import { test, jest, expect } from "@jest/globals"; |
3 | 3 | import { Connection, PublicKey, Transaction } from "@solana/web3.js";
|
4 | 4 | import { createSubdomain } from "../src/bindings/createSubdomain";
|
5 | 5 | import { transferSubdomain } from "../src/bindings/transferSubdomain";
|
@@ -31,13 +31,13 @@ test("Create sub", async () => {
|
31 | 31 |
|
32 | 32 | test("Transfer sub", async () => {
|
33 | 33 | let tx = new Transaction();
|
34 |
| - const owner = new PublicKey("A41TAGFpQkFpJidLwH37ydunE7Q3jpBaS228RkoXiRQk"); |
| 34 | + const owner = new PublicKey("HKKp49qGWXd639QsuH7JiLijfVW5UtCVY4s1n2HANwEA"); |
35 | 35 | const parentOwner = new PublicKey(
|
36 |
| - "A41TAGFpQkFpJidLwH37ydunE7Q3jpBaS228RkoXiRQk", |
| 36 | + "HKKp49qGWXd639QsuH7JiLijfVW5UtCVY4s1n2HANwEA", |
37 | 37 | );
|
38 | 38 | let ix = await transferSubdomain(
|
39 | 39 | connection,
|
40 |
| - "test.0x33.sol", |
| 40 | + "test.bonfida.sol", |
41 | 41 | PublicKey.default,
|
42 | 42 | false,
|
43 | 43 | );
|
@@ -66,9 +66,9 @@ test("Transfer sub", async () => {
|
66 | 66 | test("Find sub domain", async () => {
|
67 | 67 | const subs = await findSubdomains(
|
68 | 68 | connection,
|
69 |
| - getDomainKeySync("bonfida").pubkey, |
| 69 | + getDomainKeySync("67679").pubkey, |
70 | 70 | );
|
71 |
| - const expectedSub = ["dex", "naming", "test"]; |
| 71 | + const expectedSub = ["booya", "bullish", "hollaaa", "testing"]; |
72 | 72 | subs.sort().forEach((e, idx) => expect(e).toBe(expectedSub[idx]));
|
73 | 73 | });
|
74 | 74 |
|
|
0 commit comments