Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
chrlschwb committed Sep 7, 2023
1 parent 962ac30 commit 0b49b49
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ export class UpdateProfileHappyCaseFixture extends BaseQueryNodeFixture {
expected.externalResources?.map(asMembershipExternalResource) ?? []
)
assert.isFalse(Utils.hasDuplicates(metadata.externalResources?.map(({ type }) => type)))
assert.equal(metadata.isVerifiedValidator, false)
assert.equal(metadata.validatorAccount, expected.validatorAccount)
}

public getExpectedValues(): MemberProfileData {
Expand Down Expand Up @@ -97,9 +99,9 @@ export class UpdateProfileHappyCaseFixture extends BaseQueryNodeFixture {
expected.externalResources?.map(asMembershipExternalResource) ?? []
)
assert.isFalse(Utils.hasDuplicates(newMetadata.externalResources?.map(({ type }) => type)))
assert.equal(newMetadata.isVerifiedValidator, false)
console.log(newMetadata, expected)
assert.equal(newMetadata.validatorAccount, expected.validatorAccount)
// assert.equal(newMetadata.isVerifiedValidator, false);
// console.log(newMetadata, expected);
// assert.equal(newMetadata.validatorAccount, expected.validatorAccount);
}

async execute(): Promise<void> {
Expand Down
6 changes: 3 additions & 3 deletions tests/network-tests/src/flows/membership/updatingProfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ export default async function updatingProfile({ api, query }: FlowProps): Promis
{
handle: 'New handle 1',
name: 'New name',
validatorAccount: '',
validatorAccount: 'validator address',
},
{
handle: 'New handle 2',
validatorAccount: '',
validatorAccount: 'validator address2',
},
// Setting metadata to null
{
Expand All @@ -39,7 +39,7 @@ export default async function updatingProfile({ api, query }: FlowProps): Promis
value: '[email protected]',
},
],
validatorAccount: '',
validatorAccount: 'validator address2',
},
// Full update
{
Expand Down

0 comments on commit 0b49b49

Please sign in to comment.