Skip to content

Commit bc42189

Browse files
authored
chore: fix ci by lock nwsapi (#1533)
1 parent 0849680 commit bc42189

File tree

4 files changed

+142
-138
lines changed

4 files changed

+142
-138
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,5 +143,10 @@
143143
"react-dom": "18.3.1",
144144
"viem": "^2.33.2",
145145
"wagmi": "^2.14.16"
146+
},
147+
"pnpm": {
148+
"overrides": {
149+
"nwsapi": "2.2.13"
150+
}
146151
}
147152
}

packages/web3/src/connect-button/__tests__/theme.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('ConnectButton style', () => {
1818
);
1919
const { baseElement } = render(<App />);
2020
const buttonStyle = window.getComputedStyle(baseElement.querySelector('.ant-btn')!);
21-
expect(buttonStyle.backgroundColor).toBe('rgb(132, 66, 255)');
21+
expect(buttonStyle.backgroundColor).toBe('rgb(100, 46, 217)');
2222
expect(buttonStyle.color).toBe('rgb(255, 255, 255)');
2323
});
2424
});

packages/web3/src/nft-image/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,48 @@ exports[`NFTImage > use custom getNFTMetadata 1`] = `
4444
</div>
4545
</body>
4646
`;
47+
48+
exports[`NFTImage > use custom getNFTMetadata 2`] = `
49+
<body>
50+
<div>
51+
<div
52+
class="ant-image css-dev-only-do-not-override-apn68"
53+
>
54+
<img
55+
alt="Test_0x21CDf0974d53a6e96eF05d7B324a9803735fFd3B_123"
56+
class="ant-image-img css-dev-only-do-not-override-apn68"
57+
src="https://example.com/nft.png"
58+
style="image-rendering: pixelated;"
59+
/>
60+
<div
61+
class="ant-image-mask"
62+
>
63+
<div
64+
class="ant-image-mask-info"
65+
>
66+
<span
67+
aria-label="eye"
68+
class="anticon anticon-eye"
69+
role="img"
70+
>
71+
<svg
72+
aria-hidden="true"
73+
data-icon="eye"
74+
fill="currentColor"
75+
focusable="false"
76+
height="1em"
77+
viewBox="64 64 896 896"
78+
width="1em"
79+
>
80+
<path
81+
d="M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"
82+
/>
83+
</svg>
84+
</span>
85+
Preview
86+
</div>
87+
</div>
88+
</div>
89+
</div>
90+
</body>
91+
`;

0 commit comments

Comments
 (0)