mirror of
https://github.com/larksuite/cli.git
synced 2026-09-14 18:42:53 +08:00
409a3172da
* feat: add okr single create shortcut & skill text opti * fix: deterministic-gate remove internal paging logic * fix: CR issue * opti: okr create/batch-create support note/category, indicator skill update
24 lines
602 B
Go
24 lines
602 B
Go
// Copyright (c) 2026 Lark Technologies Pte. Ltd.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package okr
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/smartystreets/goconvey/convey"
|
|
)
|
|
|
|
func TestShortcutsRegistration(t *testing.T) {
|
|
convey.Convey("Shortcuts() returns all commands", t, func() {
|
|
list := Shortcuts()
|
|
commands := make([]string, 0, len(list))
|
|
for _, shortcut := range list {
|
|
commands = append(commands, shortcut.Command)
|
|
}
|
|
convey.So(commands, convey.ShouldContain, "+create")
|
|
convey.So(commands, convey.ShouldContain, "+batch-create")
|
|
convey.So(commands, convey.ShouldContain, "+patch")
|
|
})
|
|
}
|