1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

WTF-427 Use new keyboard implementation for widgets. Closes #427

This commit is contained in:
Chris Cummer
2019-05-06 08:56:01 -07:00
parent a9c5dc3be8
commit 2d0706c40b
45 changed files with 589 additions and 745 deletions

View File

@@ -3,17 +3,13 @@ package wtftests
import (
"testing"
"github.com/olebedev/config"
. "github.com/stretchr/testify/assert"
. "github.com/wtfutil/wtf/checklist"
"github.com/wtfutil/wtf/wtf"
)
/* -------------------- CheckMark -------------------- */
func TestCheckMark(t *testing.T) {
loadConfig()
item := ChecklistItem{}
Equal(t, " ", item.CheckMark())
@@ -24,8 +20,6 @@ func TestCheckMark(t *testing.T) {
/* -------------------- Toggle -------------------- */
func TestToggle(t *testing.T) {
loadConfig()
item := ChecklistItem{}
Equal(t, false, item.Checked)
@@ -35,9 +29,3 @@ func TestToggle(t *testing.T) {
item.Toggle()
Equal(t, false, item.Checked)
}
/* -------------------- helpers -------------------- */
func loadConfig() {
wtf.Config, _ = config.ParseYamlFile("../_sample_configs/simple_config.yml")
}