z_set_realm_notice_03_filetest.gno
0.77 Kb · 31 lines
1// PKGPATH: gno.land/r/gnoland/boards2/v1/filetests/z_set_realm_notice_03_filetest
2
3package z_set_realm_notice_03_filetest
4
5import (
6 "testing"
7
8 boards2 "gno.land/r/gnoland/boards2/v1"
9)
10
11const owner address = "g1rp7cmetn27eqlpjpc4vuusf8kaj746tysc0qgh"
12
13func main(cur realm) {
14 testing.SetRealm(testing.NewUserRealm(owner))
15
16 boards2.SetRealmNotice(cross(cur), "This is a test realm message")
17
18 println(boards2.Render(""))
19}
20
21// Output:
22//
23// > \[!INFO\] Notice
24// > This is a test realm message
25//
26// # Boards
27// [Create Board](/r/gnoland/boards2/v1:create-board) • [List Admin Users](/r/gnoland/boards2/v1:admin-users) • [Help](/r/gnoland/boards2/v1:help)
28//
29// ---
30// ### Currently there are no boards
31// Be the first to [create a new board](/r/gnoland/boards2/v1:create-board)!