Skip to content

Commit a4d756f

Browse files
committed
test: clean up assertions in setAgoraKey task test for clarity
1 parent 7661e6a commit a4d756f

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

packages/ethernaut-optigov/test/tasks/setAgoraKey.test.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,13 @@ describe('setAgoraKey task', function () {
5353
)
5454

5555
// Verify the output contains the new key and the restart message.
56-
console.log('#######', result)
57-
5856
assert(result.includes(`- Agora API Key set to ${testKey}`))
59-
// assert(
60-
// result.includes(
61-
// 'Please restart the tool for the new API key to take effect.',
62-
// ),
63-
// )
57+
assert(
58+
result.includes(
59+
'Please restart the tool for the new API key to take effect.',
60+
),
61+
)
6462
// Also verify process.env was updated
65-
// assert.strictEqual(process.env.AGORA_API_KEY, testKey)
63+
assert.strictEqual(process.env.AGORA_API_KEY, testKey)
6664
})
6765
})

0 commit comments

Comments
 (0)