Trigger a UI refresh when the scanner finds changes.

Closes #1025
This commit is contained in:
Deluan 2021-06-09 21:02:20 -04:00
parent cb6aa49439
commit 7f85ecd515
14 changed files with 110 additions and 41 deletions

View file

@ -8,8 +8,10 @@ import (
var _ = Describe("Event", func() {
It("marshals Event to JSON", func() {
testEvent := TestEvent{Test: "some data"}
json := testEvent.Prepare(&testEvent)
Expect(json).To(Equal(`{"name":"testEvent","Test":"some data"}`))
data := testEvent.Data(&testEvent)
Expect(data).To(Equal(`{"Test":"some data"}`))
name := testEvent.Name(&testEvent)
Expect(name).To(Equal("testEvent"))
})
})