Skip to content
Snippets Groups Projects
Commit 8ceff789 authored by Jono Wenger's avatar Jono Wenger
Browse files

Docs test

parent 6c0a5ba2
No related branches found
No related tags found
1 merge request!60Revert "Fail a test to be sure it works"
......@@ -13,6 +13,7 @@ import (
"gitlab.com/elixxir/client/bindings"
"gitlab.com/elixxir/xxdk-wasm/indexedDb"
"gitlab.com/elixxir/xxdk-wasm/utils"
_ "gitlab.com/xx_network/primitives/id"
"syscall/js"
)
......@@ -63,9 +64,9 @@ func (ch *ChannelsManager) GetID(js.Value, []js.Value) interface{} {
// NewChannelsManager constructs a ChannelsManager.
//
// Parameters:
// - args[0] - ID of E2e object in tracker (int). This can be retrieved using
// - args[0] - ID of [E2e] object in tracker (int). This can be retrieved using
// [E2e.GetID].
// - args[1] - ID of UserDiscovery object in tracker (int). This can be
// - args[1] - ID of [UserDiscovery] object in tracker (int). This can be
// retrieved using [UserDiscovery.GetID].
//
// Returns:
......@@ -259,12 +260,12 @@ func (ch *ChannelsManager) JoinChannel(_ js.Value, args []js.Value) interface{}
// GetChannels returns the IDs of all channels that have been joined.
//
// Returns:
// - JSON of an array of marshalled [id.ID] (Uint8Array).
// - JSON of an array of marshalled [gitlab.com/xx_network/primitives/id.ID] (Uint8Array).
// - Throws a TypeError if getting the channels fails.
//
// JSON Example:
// {
// U4x/lrFkvxuXu59LtHLon1sUhPJSCcnZND6SugndnVID",
// "U4x/lrFkvxuXu59LtHLon1sUhPJSCcnZND6SugndnVID",
// "15tNdkKbYXoMn58NO6VbDMDWFEyIhTWEGsvgcJsHWAgD"
// }
func (ch *ChannelsManager) GetChannels(js.Value, []js.Value) interface{} {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment