more-speech/spec/more_speech/ui/article_window_spec.clj
2022-01-24 10:30:12 -06:00

15 lines
577 B
Clojure

(ns more-speech.ui.article-window-spec
(:require [speclj.core :refer :all]
[more-speech.ui.article-window :refer :all]
[more-speech.ui.widget :refer [widget setup-widget]]))
(describe "article window"
(context "setup"
(it "has the components"
(let [state {}
article-window (map->article-window {:x 0 :y 0 :h 100 :w 100})
article-window (setup-widget article-window state)]
(should (satisfies? widget (:page-up article-window)))
(should (satisfies? widget (:page-down article-window)))
))))