Skip to content

socket and ws command test#113

Open
alibazregar wants to merge 3 commits into
masterfrom
alibazregar-add-socket-and-ws-command-test
Open

socket and ws command test#113
alibazregar wants to merge 3 commits into
masterfrom
alibazregar-add-socket-and-ws-command-test

Conversation

@alibazregar

Copy link
Copy Markdown
Collaborator

No description provided.

@alibazregar alibazregar added the bug Something isn't working label May 7, 2024
@alibazregar alibazregar self-assigned this May 7, 2024

@Qamsari Qamsari left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please fix issue and resolve conflict.

Comment on lines +24 to +44
async createHtmlElementAsync(context) {
const tag = new CommandElement("member");
tag.addAttributeIfExist("name", this.name);
await Promise.all([
tag.addAttributeIfExistAsync("preview", this.preview, context),
tag.addAttributeIfExistAsync("sort", this.sort, context),
tag.addAttributeIfExistAsync("method", this.method, context),
tag.addAttributeIfExistAsync("query", this.query, context),
]);
if (this.extraAttributes) {
if (this.extraAttributes) {
await Promise.all(
Object.entries(this.extraAttributes).map((pair) =>
tag.addAttributeIfExistAsync(pair[0], pair[1], context)
)
);
}
}
await tag.addRawContentIfExistAsync(this.rawContent, context);
return tag;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use and extend (override) base class implementation of createHtmlElementAsync() for remove existing part of method body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants