Skip to content

Commit a230257

Browse files
export existence tests for widgets/error and widgets/forms
1 parent 196bf10 commit a230257

3 files changed

Lines changed: 405 additions & 7 deletions

File tree

test/unit/widgets/buttons.test.ts

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,36 @@ describe('index', () => {
142142
it('exists', () => {
143143
expect(index).toBeInstanceOf(Object)
144144
})
145-
146-
// buttons.index.line = {} // Approx 80em
147-
// buttons.index.twoLine = {} // Approx 40em * 2.4em
148-
// buttons.index.twoLine[''] = function (dom, x) {
149-
// buttons.index.twoLine.widgetForClass = function (c) {
150-
// buttons.index.twoLine['http://www.w3.org/2000/10/swap/pim/qif#Transaction'] = function (dom, x) {
151-
// buttons.index.twoLine['http://www.w3.org/ns/pim/trip#Trip'] = function (
145+
})
146+
describe('index.line', () => {
147+
it('exists', () => {
148+
expect(index.line).toBeInstanceOf(Object)
149+
})
150+
})
151+
describe('index.twoLine', () => {
152+
it('exists', () => {
153+
expect(index.twoLine).toBeInstanceOf(Object)
154+
})
155+
})
156+
describe('index.twoLine[\'\']', () => {
157+
it('exists', () => {
158+
expect(index.twoLine['']).toBeInstanceOf(Object)
159+
})
160+
})
161+
describe('index.twoLine[\'http://www.w3.org/2000/10/swap/pim/qif#Transaction\']', () => {
162+
it('exists', () => {
163+
expect(index.twoLine['http://www.w3.org/2000/10/swap/pim/qif#Transaction']).toBeInstanceOf(Object)
164+
})
165+
})
166+
describe('index.twoLine[\'http://www.w3.org/ns/pim/trip#Trip\']', () => {
167+
it('exists', () => {
168+
expect(index.twoLine['http://www.w3.org/ns/pim/trip#Trip']).toBeInstanceOf(Object)
169+
})
170+
})
171+
describe('index.twoLine.widgetForClass', () => {
172+
it('exists', () => {
173+
expect(index.twoLine.widgetForClass).toBeInstanceOf(Object)
174+
})
152175
})
153176

154177
describe('isAudio', () => {

test/unit/widgets/error.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { errorMessageBlock } from '../../../src/widgets/error'
2+
3+
describe('button', () => {
4+
it('exists', () => {
5+
expect(errorMessageBlock).toBeInstanceOf(Function)
6+
})
7+
})

0 commit comments

Comments
 (0)