-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add hardhat task to update programs. #49
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
describe("WHEN adding it with the add-program task, AND passing all parameters", () => {
it("THEN it is listed", async () => {
it("WHEN updates the program using update-program", () => {
it("WHEN updates name and url", async () => {
it("WHEN updates only name", async () => {
it("WHEN updates only url", async () => {
should be:
describe("WHEN adding it with the add-program task, AND passing all parameters", () => {
it("THEN it is listed", async () => {
describe("WHEN updating both name and url with the update-program task", () => {
it("THEN the name changed")
it("AND the url changed")
describe("WHEN updating only the name with the update-program task")
it("THEN the name changed")
it("AND the url is kept")
describe("WHEN updating only the url with the update-program task")
it("THEN the url changed")
it("AND the name is kept")
or at least:
describe("WHEN adding it with the add-program task, AND passing all parameters", () => {
it("THEN it is listed", async () => {
describe("update-program task", () => {
it("WHEN updating name and url THEN they are both modified", async () => {
it("WHEN updating only name THEN only the name changes AND the original url is kept", async () => {
it("WHEN updating only url THEN only the url changes AND the original name is kept", async () => {
also, there's the missing testcase of not passing any of the optional flags
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CI fails for something other than the Alchemy 429, so please fix that as well.
the other blocking change is the incorrect nesting of mocha hooks
8096873
to
ae68b58
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix those minor changes, rebase, and we're good to go
test/deployments.ts
Outdated
expect(updatedProgram.startTime).to.eq(program.startTime); | ||
}); | ||
}); | ||
describe("AND updates url", async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix the grammar of the descriptions.
this should perhaps be AND WHEN updating only the url
The test logs are harder to follow otherwise
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wouldn't WHEN
be redundant?
WHEN updates the program using update-program
AND updates the name
✓ THEN only the name is changed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have you taken the previous feedback into account?
ae68b58
to
54f8f64
Compare
use proper WHEN-THEN syntaxis update tests grammar
54f8f64
to
7db71d0
Compare
fix throw message error
yarn lint-ts
7db71d0
to
632a0a6
Compare
No description provided.