|
| 1 | +import { |
| 2 | + addStyleSheet, |
| 3 | + allClassURIs, |
| 4 | + askName, |
| 5 | + attachmentList, |
| 6 | + button, |
| 7 | + cancelButton, |
| 8 | + clearElement, |
| 9 | + complain, |
| 10 | + continueButton, |
| 11 | + defaultAnnotationStore, |
| 12 | + deleteButtonWithCheck, |
| 13 | + extractLogURI, |
| 14 | + findImage, |
| 15 | + findImageFromURI, |
| 16 | + fileUploadButtonDiv, |
| 17 | + formatDateTime, |
| 18 | + imagesOf, |
| 19 | + index, |
| 20 | + isAudio, |
| 21 | + isImage, |
| 22 | + isVideo, |
| 23 | + linkButton, |
| 24 | + linkIcon, |
| 25 | + openHrefInOutlineMode, |
| 26 | + personTR, |
| 27 | + propertyTriage, |
| 28 | + refreshTree, |
| 29 | + removeButton, |
| 30 | + selectorPanel, |
| 31 | + selectorPanelRefresh, |
| 32 | + setImage, |
| 33 | + setName, |
| 34 | + shortDate, |
| 35 | + shortTime, |
| 36 | + timestamp, |
| 37 | +} from '../../../src/widgets/buttons' |
| 38 | + |
| 39 | +describe('addStyleSheet', () => { |
| 40 | + it('exists', () => { |
| 41 | + expect(addStyleSheet).toBeInstanceOf(Function) |
| 42 | + }) |
| 43 | +}) |
| 44 | + |
| 45 | +describe('allClassURIs', () => { |
| 46 | + it('exists', () => { |
| 47 | + expect(allClassURIs).toBeInstanceOf(Function) |
| 48 | + }) |
| 49 | +}) |
| 50 | + |
| 51 | +describe('askName', () => { |
| 52 | + it('exists', () => { |
| 53 | + expect(askName).toBeInstanceOf(Function) |
| 54 | + }) |
| 55 | +}) |
| 56 | + |
| 57 | +describe('attachmentList', () => { |
| 58 | + it('exists', () => { |
| 59 | + expect(attachmentList).toBeInstanceOf(Function) |
| 60 | + }) |
| 61 | +}) |
| 62 | + |
| 63 | +describe('button', () => { |
| 64 | + it('exists', () => { |
| 65 | + expect(button).toBeInstanceOf(Function) |
| 66 | + }) |
| 67 | +}) |
| 68 | + |
| 69 | +describe('cancelButton', () => { |
| 70 | + it('exists', () => { |
| 71 | + expect(cancelButton).toBeInstanceOf(Function) |
| 72 | + }) |
| 73 | +}) |
| 74 | + |
| 75 | +describe('clearElement', () => { |
| 76 | + it('exists', () => { |
| 77 | + expect(clearElement).toBeInstanceOf(Function) |
| 78 | + }) |
| 79 | +}) |
| 80 | + |
| 81 | +describe('complain', () => { |
| 82 | + it('exists', () => { |
| 83 | + expect(complain).toBeInstanceOf(Function) |
| 84 | + }) |
| 85 | +}) |
| 86 | + |
| 87 | +describe('continueButton', () => { |
| 88 | + it('exists', () => { |
| 89 | + expect(continueButton).toBeInstanceOf(Function) |
| 90 | + }) |
| 91 | +}) |
| 92 | + |
| 93 | +describe('defaultAnnotationStore', () => { |
| 94 | + it('exists', () => { |
| 95 | + expect(defaultAnnotationStore).toBeInstanceOf(Function) |
| 96 | + }) |
| 97 | +}) |
| 98 | + |
| 99 | +describe('deleteButtonWithCheck', () => { |
| 100 | + it('exists', () => { |
| 101 | + expect(deleteButtonWithCheck).toBeInstanceOf(Function) |
| 102 | + }) |
| 103 | +}) |
| 104 | + |
| 105 | +describe('extractLogURI', () => { |
| 106 | + it('exists', () => { |
| 107 | + expect(extractLogURI).toBeInstanceOf(Function) |
| 108 | + }) |
| 109 | +}) |
| 110 | + |
| 111 | +describe('findImage', () => { |
| 112 | + it('exists', () => { |
| 113 | + expect(findImage).toBeInstanceOf(Function) |
| 114 | + }) |
| 115 | +}) |
| 116 | + |
| 117 | +describe('findImageFromURI', () => { |
| 118 | + it('exists', () => { |
| 119 | + expect(findImageFromURI).toBeInstanceOf(Function) |
| 120 | + }) |
| 121 | +}) |
| 122 | + |
| 123 | +describe('fileUploadButtonDiv', () => { |
| 124 | + it('exists', () => { |
| 125 | + expect(fileUploadButtonDiv).toBeInstanceOf(Function) |
| 126 | + }) |
| 127 | +}) |
| 128 | + |
| 129 | +describe('formatDateTime', () => { |
| 130 | + it('exists', () => { |
| 131 | + expect(formatDateTime).toBeInstanceOf(Function) |
| 132 | + }) |
| 133 | +}) |
| 134 | + |
| 135 | +describe('imagesOf', () => { |
| 136 | + it('exists', () => { |
| 137 | + expect(imagesOf).toBeInstanceOf(Function) |
| 138 | + }) |
| 139 | +}) |
| 140 | + |
| 141 | +describe('index', () => { |
| 142 | + it('exists', () => { |
| 143 | + expect(index).toBeInstanceOf(Object) |
| 144 | + }) |
| 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 ( |
| 152 | +}) |
| 153 | + |
| 154 | +describe('isAudio', () => { |
| 155 | + it('exists', () => { |
| 156 | + expect(isAudio).toBeInstanceOf(Function) |
| 157 | + }) |
| 158 | +}) |
| 159 | + |
| 160 | +describe('isImage', () => { |
| 161 | + it('exists', () => { |
| 162 | + expect(isImage).toBeInstanceOf(Function) |
| 163 | + }) |
| 164 | +}) |
| 165 | + |
| 166 | +describe('isVideo', () => { |
| 167 | + it('exists', () => { |
| 168 | + expect(isVideo).toBeInstanceOf(Function) |
| 169 | + }) |
| 170 | +}) |
| 171 | + |
| 172 | +describe('linkButton', () => { |
| 173 | + it('exists', () => { |
| 174 | + expect(linkButton).toBeInstanceOf(Function) |
| 175 | + }) |
| 176 | +}) |
| 177 | + |
| 178 | +describe('linkIcon', () => { |
| 179 | + it('exists', () => { |
| 180 | + expect(linkIcon).toBeInstanceOf(Function) |
| 181 | + }) |
| 182 | +}) |
| 183 | + |
| 184 | +describe('openHrefInOutlineMode', () => { |
| 185 | + it('exists', () => { |
| 186 | + expect(openHrefInOutlineMode).toBeInstanceOf(Function) |
| 187 | + }) |
| 188 | +}) |
| 189 | + |
| 190 | +describe('personTR', () => { |
| 191 | + it('exists', () => { |
| 192 | + expect(personTR).toBeInstanceOf(Function) |
| 193 | + }) |
| 194 | +}) |
| 195 | + |
| 196 | +describe('propertyTriage', () => { |
| 197 | + it('exists', () => { |
| 198 | + expect(propertyTriage).toBeInstanceOf(Function) |
| 199 | + }) |
| 200 | +}) |
| 201 | + |
| 202 | +describe('refreshTree', () => { |
| 203 | + it('exists', () => { |
| 204 | + expect(refreshTree).toBeInstanceOf(Function) |
| 205 | + }) |
| 206 | +}) |
| 207 | + |
| 208 | +describe('removeButton', () => { |
| 209 | + it('exists', () => { |
| 210 | + expect(removeButton).toBeInstanceOf(Function) |
| 211 | + }) |
| 212 | +}) |
| 213 | + |
| 214 | +describe('selectorPanel', () => { |
| 215 | + it('exists', () => { |
| 216 | + expect(selectorPanel).toBeInstanceOf(Function) |
| 217 | + }) |
| 218 | +}) |
| 219 | + |
| 220 | +describe('selectorPanelRefresh', () => { |
| 221 | + it('exists', () => { |
| 222 | + expect(selectorPanelRefresh).toBeInstanceOf(Function) |
| 223 | + }) |
| 224 | +}) |
| 225 | + |
| 226 | +describe('setImage', () => { |
| 227 | + it('exists', () => { |
| 228 | + expect(setImage).toBeInstanceOf(Function) |
| 229 | + }) |
| 230 | +}) |
| 231 | + |
| 232 | +describe('setName', () => { |
| 233 | + it('exists', () => { |
| 234 | + expect(setName).toBeInstanceOf(Function) |
| 235 | + }) |
| 236 | +}) |
| 237 | + |
| 238 | +describe('shortDate', () => { |
| 239 | + it('exists', () => { |
| 240 | + expect(shortDate).toBeInstanceOf(Function) |
| 241 | + }) |
| 242 | +}) |
| 243 | + |
| 244 | +describe('shortTime', () => { |
| 245 | + it('exists', () => { |
| 246 | + expect(shortTime).toBeInstanceOf(Function) |
| 247 | + }) |
| 248 | +}) |
| 249 | + |
| 250 | +describe('timestamp', () => { |
| 251 | + it('exists', () => { |
| 252 | + expect(timestamp).toBeInstanceOf(Function) |
| 253 | + }) |
| 254 | +}) |
| 255 | + |
0 commit comments