Skip to content

Commit

Permalink
fix(test): remove extra await
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeday committed Jan 10, 2025
1 parent 3261a8c commit c228afd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/0.8.25/vaults/dashboard/dashboard.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ describe("Dashboard", () => {

it("reverts if called by a non-admin", async () => {
const permit = {
owner: await vaultOwner.address,
owner: vaultOwner.address,
spender: String(dashboard.target),
value: amountSteth,
nonce: await steth.nonces(vaultOwner),
Expand All @@ -755,7 +755,7 @@ describe("Dashboard", () => {

it("reverts if the permit is invalid", async () => {
const permit = {
owner: await vaultOwner.address,
owner: vaultOwner.address,
spender: stranger.address, // invalid spender
value: amountSteth,
nonce: await steth.nonces(vaultOwner),
Expand Down Expand Up @@ -924,7 +924,7 @@ describe("Dashboard", () => {

it("reverts if called by a non-admin", async () => {
const permit = {
owner: await vaultOwner.address,
owner: vaultOwner.address,
spender: String(dashboard.target),
value: amountShares,
nonce: await wsteth.nonces(vaultOwner),
Expand All @@ -948,7 +948,7 @@ describe("Dashboard", () => {

it("reverts if the permit is invalid", async () => {
const permit = {
owner: await vaultOwner.address,
owner: vaultOwner.address,
spender: stranger.address, // invalid spender
value: amountShares,
nonce: await wsteth.nonces(vaultOwner),
Expand All @@ -972,7 +972,7 @@ describe("Dashboard", () => {

it("burns wstETH with permit", async () => {
const permit = {
owner: await vaultOwner.address,
owner: vaultOwner.address,
spender: String(dashboard.target),
value: amountShares,
nonce: await wsteth.nonces(vaultOwner),
Expand Down Expand Up @@ -1004,7 +1004,7 @@ describe("Dashboard", () => {

it("succeeds if has allowance", async () => {
const permit = {
owner: await vaultOwner.address,
owner: vaultOwner.address,
spender: String(dashboard.target), // invalid spender
value: amountShares,
nonce: (await wsteth.nonces(vaultOwner)) + 1n, // invalid nonce
Expand Down Expand Up @@ -1047,7 +1047,7 @@ describe("Dashboard", () => {
const stethToBurn = sharesToBurn / 2n; // 1 share = 0.5 steth

const permit = {
owner: await vaultOwner.address,
owner: vaultOwner.address,
spender: String(dashboard.target),
value: sharesToBurn,
nonce: await wsteth.nonces(vaultOwner),
Expand Down Expand Up @@ -1083,7 +1083,7 @@ describe("Dashboard", () => {
const stethToBurn = sharesToBurn * 2n; // 1 share = 2 steth

const permit = {
owner: await vaultOwner.address,
owner: vaultOwner.address,
spender: String(dashboard.target),
value: sharesToBurn,
nonce: await wsteth.nonces(vaultOwner),
Expand Down

0 comments on commit c228afd

Please sign in to comment.