Advertisement
atiqsh

Untitled

Apr 26th, 2021
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 58.99 KB | None | 0 0
  1. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.dateFormatReducer.test.js
  2.  
  3. Test Suites: console.error1 failed , node_modules\prop-types\factoryWithTypeCheckers.js:21
  4. 41 passed Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  5. PASS tests\actions\encounterRole.test.js
  6. fetchEncounterRole action
  7. √ creates FETCH_ENCOUNTER_ROLE_LOADING and FETCH_ENCOUNTER_ROLE_SUCCESS
  8. action types upon success response from server (11ms)
  9.  
  10.  
  11. RUNS tests/actions/draftTableAction.test.js
  12. RUNS tests/actions/encounterRole.test.js
  13. RUNS tests/reducers/settingEncounterRoleReducer.test.js
  14. RUNS tests/reducers/dateFormatReducer.test.js
  15.  
  16. Test Suites: 1 failed, 41 passed, 42 of 67 total
  17. Tests: 3 failed, 2 skipped, 223 passed, 228 total
  18. console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
  19. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  20.  
  21. console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
  22. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  23.  
  24. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  25.  
  26. console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
  27. console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
  28. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  29. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  30. console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
  31. console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
  32. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  33.  
  34.  
  35. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 1.
  36. console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
  37. console.error node_modules\prop-types\factoryWithTypeCheckers.js:21y of check functions, but received undefined at index 2.
  38. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  39.  
  40.  
  41. RUNS console.error node_modules\prop-types\factoryWithTypeCheckers.js:21tests/actions/
  42. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.draftTableAction.test.js
  43.  
  44.  
  45. RUNS tests/reducers/settingEncounterRoleReducer.test.js
  46. console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
  47. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.tests/actions/
  48.  
  49. activeOrderAction.test.js
  50. RUNS tests/reducers/dateFormatReducer.test.js
  51.  
  52. console.errorTest Suites: node_modules\prop-types\factoryWithTypeCheckers.js:211 failed
  53. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.,
  54.  
  55. PASS tests\reducers\settingEncounterRoleReducer.test.js
  56. Setting Encounter Tole reducer
  57. √ should return the initial state (1ms)
  58.  
  59. √ Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  60. console.error
  61.  
  62.  
  63. console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
  64. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.tests/actions/
  65.  
  66.  
  67. console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
  68. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  69.  
  70. settingEncounterRoleReducer.test.js
  71. console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
  72. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  73.  
  74. activeOrderAction.test.js
  75. console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
  76. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  77.  
  78. dateFormatReducer.test.js
  79.  
  80. console.errorTest Suites: node_modules\prop-types\factoryWithTypeCheckers.js:211 failed
  81. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.,
  82.  
  83. √ should handle `SETTING_ENCOUNTER_ROLE_SUCCESS` (1ms)
  84. √ should handle `SETTING_ENCOUNTER_ROLE_FAILURE`
  85. √ should set the loading status for the encounter role (1ms)
  86.  
  87. PASS tests\reducers\dateFormatReducer.test.js
  88. Date Format Reducer
  89. √ should set the state of a successful added date format (1ms)
  90. √ should return an error (4ms)
  91.  
  92. PASS tests\actions\draftTableAction.test.js
  93. Discontinue Order Actions
  94. √ should dispatch ADD_DRAFT_DRUG_ORDER_SUCCESS successfully (4ms)
  95. √ should dispatch DELETE_DRAFT_DRUG_ORDER_SUCCESS successfully (1ms)
  96. √ should dispatch DELETE_ALL_DRAFT_DRUG_ORDERS_SUCCESS successfully (2ms)
  97.  
  98.  
  99. RUNS tests/actions/draftTableAction.test.js
  100. RUNS tests/actions/orderEntryActions.test.js
  101. RUNS tests/components/tabs/DosageTab.test.js
  102. node_modules\prop-types\factoryWithTypeCheckers.js:21
  103. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  104.  
  105. console.errortests/actions/ orderEntryActions.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
  106.  
  107. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  108.  
  109. console.errortests/components/tabs/ DosageTab.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
  110.  
  111. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  112.  
  113. console.errortests/actions/ activeOrderAction.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
  114.  
  115. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  116.  
  117. console.errortests/reducers/ createOrderReducer.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
  118.  
  119.  
  120. Test Suites: Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  121.  
  122. PASS tests\actions\activeOrderAction.test.jss\prop-types\factoryWithTypeCheckers.js:21, 46 of 67 total
  123. activeOrder action
  124. √ should fetch active orders successfully (19ms)
  125.  
  126.  
  127. RUNS tests/actions/orderEntryActions.test.js
  128. RUNS tests/components/tabs/DosageTab.test.js
  129. RUNS tests/actions/activeOrderAction.test.js
  130. RUNS tests/reducers/createOrderReducer.test.js
  131.  
  132. console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
  133. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  134.  
  135. console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
  136. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  137.  
  138. console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
  139. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  140.  
  141. console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
  142. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  143.  
  144. console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
  145. node_modules\prop-types\factoryWithTypeCheckers.js:21
  146. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2. RUNS
  147.  
  148. console.errortests/reducers/ orderSelectionReducer.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
  149.  
  150. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 1.
  151.  
  152. tests/actions/console.errororderEntryActions.test.js
  153. node_modules\prop-types\factoryWithTypeCheckers.js:21
  154. RUNS Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  155.  
  156. tests/components/tabs/console.errorDosageTab.test.js
  157. node_modules\prop-types\factoryWithTypeCheckers.js:21
  158. RUNS Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  159.  
  160. tests/reducers/console.errorcreateOrderReducer.test.js
  161.  
  162. Test Suites: node_modules\prop-types\factoryWithTypeCheckers.js:21
  163. 1 failed Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  164.  
  165. 46 passedconsole.error, 47 of 67 total
  166. Tests: node_modules\prop-types\factoryWithTypeCheckers.js:213 failed
  167. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.,
  168.  
  169. , console.error235 passed , 240 total
  170. node_modules\prop-types\factoryWithTypeCheckers.js:21Snapshots:
  171. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.1 failed
  172.  
  173. 18 passedconsole.error, 19 total
  174. PASS tests\actions\orderEntryActions.test.jsheckers.js:21
  175. getOrderEntryConfigurations action
  176. √ creates FETCH_ORDER_CONFIG_LOADING and FETCH_ORDER_CONFIG_SUCCESS
  177. action types upon success response from server (9ms)
  178.  
  179.  
  180. RUNS tests/reducers/orderSelectionReducer.test.js
  181. RUNS tests/components/tabs/DosageTab.test.js
  182. RUNS tests/reducers/fetchOrdersReducer.test.js
  183. RUNS tests/reducers/createOrderReducer.test.js
  184.  
  185. Test Suites: 1 failed, 47 passed, 48 of 67 total
  186. Tests: 3 failed, 2 skipped, 236 passed, 241 total
  187. Snapshots: 1 failed, 18 passed, 19 total
  188. console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
  189. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  190.  
  191. console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
  192. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  193.  
  194. console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
  195. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  196.  
  197. console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
  198. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  199.  
  200. console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
  201. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  202.  
  203. PASS tests\components\tabs\DosageTab.test.jsyWithTypeCheckers.js:21
  204. Dosage Tab component
  205. √ should render without crashing (4ms)
  206. √ should render the standard form (2ms)
  207. √ should render the free text form (3ms)
  208. Test click events
  209. √ should trigger event when clicked (7ms)
  210.  
  211. PASS tests\reducers\createOrderReducer.test.js
  212. createOrder reducer test suite
  213. √ sets status key error to true and sets key errorMessage to
  214. error message from payload on action type SAVE_DRAFT_LAB_ORDER_FAILURE (2ms)
  215. √ parses data from payload to key labOrderData and sets staus key
  216. added to true on action type SAVE_DRAFT_LAB_ORDER_SUCCESS (1ms)
  217. √ returns initial state if action type is not handled (1ms)
  218. √ should handle SAVE_DRAFT_LAB_ORDER_LOADING (1ms)
  219.  
  220.  
  221. RUNS tests/reducers/orderSelectionReducer.test.js
  222. RUNS tests/reducers/labOrderReducers/settingLabOrderableReducer.test.js
  223. RUNS tests/reducers/fetchOrdersReducer.test.js
  224. RUNS tests/reducers/createOrderReducer.test.js
  225.  
  226. Test Suites: 1 failed, 48 passed, 49 of 67 total
  227. Tests: 3 failed, 2 skipped, 240 passed, 245 total
  228.  
  229. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  230.  
  231.  
  232. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  233.  
  234.  
  235. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  236.  
  237. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  238. console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
  239. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 1.tests/reducers/
  240. PASS tests\reducers\orderSelectionReducer.test.js
  241. orderSelectionReducer Reducer
  242. √ should return the state as default when action is not triggered (1ms)
  243. SET_SELECTED_ORDER
  244. √ set the state with provided data (2ms)
  245.  
  246.  
  247. RUNS tests/reducers/orderSelectionReducer.test.js
  248. RUNS tests/reducers/labOrderReducers/settingLabOrderableReducer.test.js
  249. RUNS tests/reducers/settingEncounterTypeReducer.test.js
  250. RUNS tests/reducers/fetchOrdersReducer.test.js
  251.  
  252. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  253. console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
  254. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.tests/reducers/labOrderReducers/
  255.  
  256. settingLabOrderableReducer.test.js
  257. console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
  258. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  259.  
  260. settingEncounterTypeReducer.test.js
  261. console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
  262. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  263.  
  264. fetchOrdersReducer.test.js
  265. console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
  266. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  267.  
  268. createOrder.test.js
  269.  
  270. PASS tests\reducers\fetchOrdersReducer.test.jses\factoryWithTypeCheckers.js:211 failed
  271. fetchorders reducer test-suite
  272.  
  273. FETCH_ORDERS_LOADING (2ms)console.error
  274.  
  275. node_modules\prop-types\factoryWithTypeCheckers.js:21 RUNS
  276. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  277.  
  278. tests/reducers/labOrderReducers/ settingLabOrderableReducer.test.jsconsole.error
  279. node_modules\prop-types\factoryWithTypeCheckers.js:21 RUNS
  280. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  281.  
  282. settingEncounterTypeReducer.test.jsconsole.error
  283. node_modules\prop-types\factoryWithTypeCheckers.js:21 RUNS
  284. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  285.  
  286. tests/reducers/ fetchOrdersReducer.test.jsconsole.error
  287. node_modules\prop-types\factoryWithTypeCheckers.js:21 RUNS
  288. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  289.  
  290. tests/actions/ createOrder.test.jsconsole.error
  291.  
  292. Test Suites: node_modules\prop-types\factoryWithTypeCheckers.js:211 failed
  293. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.,
  294.  
  295. , 51 of 67 total
  296. console.errorTests: node_modules\prop-types\factoryWithTypeCheckers.js:213 failed
  297. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.,
  298. √ sets status key fetched to true and parses data from payload
  299. to Orders key on FETCH_ORDERS_SUCCESS (1ms)
  300. √ sets status key error to true and parses errormessage from
  301. payload to key errorMessage on FETCH_ORDERS_FAILURE (1ms)
  302. √ filters the data in the results array upon action type SORT_AND_FILTER (2ms)
  303. √ filters from the original data if the filter array is empty (2ms)
  304. √ returns all the data if sortQuery value is all and sortBy is type (2ms)
  305. √ returns initial state if action type is not handled
  306. √ should remove a discontinued active order from the state (1ms)
  307.  
  308.  
  309. tests/reducers/ patientReducer.test.jsconsole.error
  310. node_modules\prop-types\factoryWithTypeCheckers.js:21 RUNS
  311. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  312.  
  313. tests/reducers/labOrderReducers/ settingLabOrderableReducer.test.jsconsole.error
  314. node_modules\prop-types\factoryWithTypeCheckers.js:21 RUNS
  315. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  316.  
  317. tests/reducers/ settingEncounterTypeReducer.test.jsconsole.error
  318. node_modules\prop-types\factoryWithTypeCheckers.js:21 RUNS
  319. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  320.  
  321. tests/actions/ createOrder.test.jsconsole.error
  322.  
  323. Test Suites: node_modules\prop-types\factoryWithTypeCheckers.js:211 failed
  324. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.,
  325.  
  326. , 52 of 67 total
  327. console.errorTests: node_modules\prop-types\factoryWithTypeCheckers.js:213 failed
  328. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.,
  329.  
  330. , console.error254 passed , 259 total
  331. node_modules\prop-types\factoryWithTypeCheckers.js:21Snapshots:
  332. PASS tests\reducers\labOrderReducers\settingLabOrderableReducer.test.js check functions, but received undefined at index 2.1 failed
  333. getting Lab Orderable reducer
  334. √ should return the initial state (2ms)
  335. √ should handle `GET_LAB_ORDERABLES_LOADING` (1ms)
  336. √ should handle `GET_LAB_ORDERABLES_SUCCESS` (1ms)
  337. √ should handle `GET_LAB_ORDERABLES_FAILURE` (1ms)
  338.  
  339. PASS tests\reducers\settingEncounterTypeReducer.test.js
  340. Setting Encounter Type reducer
  341. √ should return the initial state (2ms)
  342. √ should handle `SETTING_ENCOUNTER_TYPE_LOADING` (1ms)
  343. √ should handle `SETTING_ENCOUNTER_TYPE_SUCCESS` (1ms)
  344. √ should handle `SETTING_ENCOUNTER_TYPE_FAILURE` (1ms)
  345.  
  346.  
  347. RUNS tests/reducers/patientReducer.test.js
  348. RUNS tests/reducers/settingEncounterTypeReducer.test.js
  349. RUNS tests/reducers/orderEntryReducer.test.js
  350. RUNS tests/actions/createOrder.test.js
  351.  
  352. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  353. console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
  354. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.tests/reducers/
  355.  
  356.  
  357. console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
  358. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  359.  
  360. noteReducer.test.js
  361. console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
  362. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  363.  
  364. orderEntryReducer.test.js
  365. console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
  366. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  367.  
  368. createOrder.test.js
  369.  
  370. PASS tests\actions\createOrder.test.jsmodules\prop-types\factoryWithTypeCheckers.js:21
  371. createOrder action
  372. √ should save orders successfully (8ms)
  373.  
  374.  
  375. RUNS tests/reducers/patientReducer.test.js
  376. RUNS tests/reducers/noteReducer.test.js
  377. RUNS tests/reducers/orderEntryReducer.test.js
  378. node_modules\prop-types\factoryWithTypeCheckers.js:21
  379. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  380.  
  381. console.errortests/reducers/ patientReducer.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
  382.  
  383. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  384.  
  385. console.errortests/reducers/ noteReducer.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
  386.  
  387. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  388.  
  389. console.errortests/reducers/ locationReducer.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
  390.  
  391. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  392.  
  393. console.errortests/reducers/ orderEntryReducer.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
  394.  
  395.  
  396. Test Suites: Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  397.  
  398. PASS tests\reducers\patientReducer.test.js7 total
  399. Patient Reducer
  400.  
  401. RUNS tests/reducers/patientReducer.test.js
  402. RUNS tests/reducers/noteReducer.test.js
  403. RUNS tests/reducers/locationReducer.test.js
  404. RUNS tests/reducers/orderEntryReducer.test.js
  405.  
  406. Test Suites: 1 failed, 54 passed, 55 of 67 total
  407. 263 passed , 268 total
  408. console.errorSnapshots: node_modules\prop-types\factoryWithTypeCheckers.js:211 failed
  409. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.,
  410.  
  411.  
  412. √ console.errorset state to initial state when no new state is passed (2ms)unctions, but received undefined at index 2.
  413.  
  414. node_modules\prop-types\factoryWithTypeCheckers.js:21
  415. RUNS Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  416.  
  417. tests/reducers/console.errorpatientReducer.test.js
  418. node_modules\prop-types\factoryWithTypeCheckers.js:21
  419. RUNS Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  420.  
  421. tests/reducers/console.errornoteReducer.test.js
  422. node_modules\prop-types\factoryWithTypeCheckers.js:21
  423. RUNS Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  424.  
  425. tests/reducers/locationReducer.test.js
  426. SET_PATIENT RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
  427. √ set the patient with provided data (2ms)
  428. √ set the patient to empty array if the request fails (1ms)
  429.  
  430. PASS tests\reducers\orderEntryReducer.test.js
  431. Order Entry Configurations reducer
  432. √ should return the initial state (2ms)
  433. √ should handle `FETCH_ORDER_CONFIG_SUCCESS` (2ms)
  434.  
  435. RUNS tests/reducers/noteReducer.test.js
  436. RUNS tests/reducers/locationReducer.test.js
  437. RUNS tests/reducers/orderEntryReducer.test.js
  438. RUNS tests/reducers/labOrderReducers/fetchLabOrderReducer.test.js
  439.  
  440. Test Suites: 1 failed, 55 passed, 56 of 67 total
  441. , 271 total
  442. Snapshots: console.error1 failed node_modules\prop-types\factoryWithTypeCheckers.js:21,
  443. √ should handle `FETCH_ORDER_CONFIG_FAILURE` (1ms)xpected an array of check functions, but received undefined at index 2.21 passed
  444.  
  445. RUNS console.error node_modules\prop-types\factoryWithTypeCheckers.js:21tests/reducers/
  446. noteReducer.test.js Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  447.  
  448.  
  449. locationReducer.test.js
  450. console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
  451. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  452.  
  453. tests/reducers/orderEntryReducer.test.js
  454. RUNS tests/reducers/labOrderReducers/console.errorfetchLabOrderReducer.test.js
  455.  
  456. node_modules\prop-types\factoryWithTypeCheckers.js:21Test Suites:
  457. 1 failed Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  458.  
  459. √ should set the loading status for fetching the order entry configuration (1ms)
  460.  
  461. PASS tests\reducers\noteReducer.test.js
  462. Note Reducer
  463. √ set state to initial state when no new state is passed (1ms)
  464. SET_NOTE
  465. √ set the patient with provided data (2ms)
  466.  
  467.  
  468. RUNS tests/reducers/encounterRoleReducer.test.js
  469. RUNS tests/reducers/noteReducer.test.js
  470.  
  471. console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
  472. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.tests/reducers/labOrderReducers/
  473.  
  474.  
  475.  
  476. Test Suites: console.error 1 failednode_modules\prop-types\factoryWithTypeCheckers.js:21
  477. , Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  478.  
  479. , 57 of 67 total
  480. Tests: console.error 3 failednode_modules\prop-types\factoryWithTypeCheckers.js:21
  481. , Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  482.  
  483. , 270 passedconsole.error, 275 total
  484. Snapshots: node_modules\prop-types\factoryWithTypeCheckers.js:21
  485. 1 failed Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  486.  
  487.  
  488. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  489. console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
  490. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 1.tests/reducers/
  491. PASS tests\reducers\locationReducer.test.js
  492. Location Reducer
  493. √ set state to initial state when no new state is passed (1ms)
  494. SET_LOCATIONS
  495. √ set the app locations with provided data (2ms)
  496.  
  497.  
  498. RUNS tests/reducers/encounterRoleReducer.test.js
  499. RUNS tests/reducers/locationReducer.test.js
  500. RUNS tests/reducers/draftReducer/draftDrugOrderReducer.test.js
  501.  
  502. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  503.  
  504. RUNS console.error node_modules\prop-types\factoryWithTypeCheckers.js:21tests/reducers/
  505. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.encounterRoleReducer.test.js
  506.  
  507. RUNS console.error node_modules\prop-types\factoryWithTypeCheckers.js:21tests/reducers/
  508. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.encounterReducer.test.js
  509.  
  510. RUNS console.error node_modules\prop-types\factoryWithTypeCheckers.js:21tests/reducers/draftReducer/
  511. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.draftDrugOrderReducer.test.js
  512.  
  513. RUNS console.error node_modules\prop-types\factoryWithTypeCheckers.js:21tests/reducers/labOrderReducers/
  514. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.fetchLabOrderReducer.test.js
  515. PASS tests\reducers\labOrderReducers\fetchLabOrderReducer.test.js
  516.  
  517. RUNS tests/reducers/encounterRoleReducer.test.js
  518. RUNS tests/reducers/encounterReducer.test.js
  519. RUNS tests/reducers/draftReducer/draftDrugOrderReducer.test.js
  520. RUNS tests/reducers/labOrderReducers/fetchLabOrderReducer.test.js
  521.  
  522. Test Suites: 1 failed, 58 passed, 59 of 67 total
  523.  
  524. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  525. fetchlaborder reducer test-suite
  526.  
  527. tests/reducers/encounterRoleReducer.test.js
  528. RUNS tests/reducers/console.errorencounterReducer.test.js
  529. node_modules\prop-types\factoryWithTypeCheckers.js:21
  530. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  531.  
  532. draftDrugOrderReducer.test.js
  533. RUNS console.error node_modules\prop-types\factoryWithTypeCheckers.js:21tests/reducers/labOrderReducers/
  534. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.fetchLabOrderReducer.test.js
  535.  
  536.  
  537.  
  538. Test Suites: 1 failedconsole.error , node_modules\prop-types\factoryWithTypeCheckers.js:21
  539. 58 passed Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  540. √ sets status key loading to true upon action type
  541. FETCH_LAB_ORDERS_LOADING (2ms)
  542. √ sets status key fetched to true and parses data from payload
  543. to labOrders key on FETCH_LAB_ORDERS_SUCCESS (2ms)
  544. √ sets status key error to true and parses errormessage from
  545. payload to key errorMessage on FETCH_LAB_ORDERS_FAILURE (1ms)
  546. √ returns initial state if action type is not handled
  547.  
  548. PASS tests\reducers\encounterRoleReducer.test.js
  549. encounterRole reducer for get actions
  550. √ should return loading as true (2ms)
  551. √ should return encounterRole (1ms)
  552. should return an error (1ms)console.error
  553.  
  554. node_modules\prop-types\factoryWithTypeCheckers.js:21
  555. RUNS Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  556.  
  557. tests/reducers/console.errorencounterRoleReducer.test.js
  558. node_modules\prop-types\factoryWithTypeCheckers.js:21
  559. RUNS Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  560.  
  561. tests/reducers/console.errorencounterReducer.test.js
  562. node_modules\prop-types\factoryWithTypeCheckers.js:21
  563. RUNS Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  564.  
  565. tests/reducers/console.errorcareSettingReducer.test.js
  566. node_modules\prop-types\factoryWithTypeCheckers.js:21
  567. RUNS Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  568.  
  569. tests/reducers/draftReducer/console.errordraftDrugOrderReducer.test.js
  570.  
  571. Test Suites: node_modules\prop-types\factoryWithTypeCheckers.js:21
  572. 1 failed Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  573.  
  574. 59 passedconsole.error, 60 of 67 total
  575. Tests: node_modules\prop-types\factoryWithTypeCheckers.js:213 failed
  576. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.,
  577.  
  578. PASS tests\reducers\draftReducer\draftDrugOrderReducer.test.js
  579. Draft Table Reducer
  580. √ should set the state of a successful added draft order (2ms)
  581. √ should set the state of a successful deleted draft order (1ms)
  582. √ should set the state of successful deleted draft orders (1ms)
  583.  
  584.  
  585.  
  586. console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
  587. tests/reducers/ Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  588.  
  589.  
  590. console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
  591. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.tests/reducers/draftReducer/
  592.  
  593.  
  594. console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
  595. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  596.  
  597. contextReducer.test.jsconsole.error
  598.  
  599. Test Suites: node_modules\prop-types\factoryWithTypeCheckers.js:211 failed
  600. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.,
  601.  
  602. , 61 of 67 total
  603. console.errorTests: node_modules\prop-types\factoryWithTypeCheckers.js:213 failed
  604. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.,
  605. PASS tests\reducers\encounterReducer.test.js
  606. encounter reducer for get actions
  607. √ should return loading as true (2ms)
  608. √ should return encounterType (1ms)
  609. √ should return an error (1ms)
  610.  
  611.  
  612. node_modules\prop-types\factoryWithTypeCheckers.js:21
  613. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  614.  
  615. console.errortests/actions/ dateFormat.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
  616.  
  617. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  618. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  619. console.errortests/reducers/ careSettingReducer.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
  620.  
  621. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  622.  
  623. console.errortests/reducers/labOrderReducers/ labOrderableReducer.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
  624.  
  625. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  626.  
  627. console.errortests/reducers/ contextReducer.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
  628.  
  629.  
  630. Test Suites: Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  631.  
  632. 1 failed , console.error62 passed , 63 of 67 total
  633. node_modules\prop-types\factoryWithTypeCheckers.js:21Tests:
  634. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 1.3 failed
  635.  
  636. 287 passedconsole.error, 292 total
  637. Snapshots: node_modules\prop-types\factoryWithTypeCheckers.js:211 failed
  638. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.,
  639.  
  640. 21 passed, 22 total
  641. PASS tests\reducers\careSettingReducer.test.jsithTypeCheckers.js:21
  642.  
  643. RUNS tests/actions/dateFormat.test.js
  644. RUNS tests/reducers/careSettingReducer.test.js
  645. RUNS console.errortests/reducers/labOrderReducers/ labOrderableReducer.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
  646.  
  647. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  648.  
  649. console.errortests/reducers/ contextReducer.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
  650.  
  651.  
  652. Test Suites: Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  653.  
  654. careSetting reducerrror62 passed , 63 of 67 total
  655. √ should successfully fetch care settings (1ms)
  656. √ should set the caresetting fetch error (1ms)
  657. √ should set the caresetting loading status (6ms)
  658.  
  659.  
  660. dateFormat.test.js
  661. RUNS tests/reducers/ careSettingReducer.test.jsconsole.error
  662. node_modules\prop-types\factoryWithTypeCheckers.js:21 RUNS
  663. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  664.  
  665. tests/reducers/labOrderReducers/labOrderableReducer.test.js
  666. RUNS tests/reducers/contextReducer.test.js
  667.  
  668. console.error node_modules\prop-types\factoryWithTypeCheckers.js:21ithTypeCheckers.js:21,
  669. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  670.  
  671.  
  672. RUNS tests/actions/console.errordateFormat.test.js
  673. node_modules\prop-types\factoryWithTypeCheckers.js:21
  674. RUNS Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  675.  
  676.  
  677. console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
  678. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  679.  
  680. contextReducer.test.js
  681.  
  682. Test Suites: console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
  683. PASS tests\reducers\contextReducer.test.jseOfType. Expected an array of check functions, but received undefined at index 2.1 failed
  684. context reducer
  685. √ default order context should be null (2ms)
  686. √ should set order context
  687.  
  688. PASS tests\actions\dateFormat.test.js
  689. getDateFormat action
  690. √ creates GET_DATE_LOADING and GET_DATE_SUCCESS
  691. action types upon success response from server (7ms)
  692.  
  693.  
  694. RUNS tests/reducers/labOrderReducers/labOrderableReducer.test.js
  695.  
  696. Test Suites: 1 failed, 65 passed, 66 of 67 total
  697. Tests: 3 failed, 2 skipped, 293 passed, 298 total
  698. Snapshots: 1 failed, 21 passed, 22 total
  699. console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
  700. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  701.  
  702. console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
  703. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  704.  
  705. console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
  706. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  707.  
  708. console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
  709. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  710.  
  711. console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
  712. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  713.  
  714. console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
  715. Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
  716.  
  717. PASS tests\reducers\labOrderReducers\labOrderableReducer.test.js:21
  718. laborderable reducer
  719. √ should handle `FETCH_LAB_ORDERABLES_SUCCESS` (1ms)
  720. √ should handle `FETCH_LAB_ORDERABLES_FAILURE` (1ms)
  721. √ should handle FETCH_LAB_ORDERABLES_LOADING
  722.  
  723. --------------------------------------|----------|----------|----------|----------|-------------------|
  724. File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
  725. --------------------------------------|----------|----------|----------|----------|-------------------|
  726. All files | 85.4 | 73.48 | 82.13 | 85.89 | |
  727. js | 75 | 16.67 | 33.33 | 75 | |
  728. config.js | 100 | 100 | 100 | 100 | |
  729. redux-store.jsx | 55.56 | 16.67 | 0 | 55.56 | 39,42,44,45 |
  730. routes.jsx | 100 | 100 | 100 | 100 | |
  731. js/actions | 98.17 | 86.96 | 96.83 | 98.85 | |
  732. actionTypes.js | 100 | 100 | 100 | 100 | |
  733. activeOrderAction.js | 100 | 100 | 100 | 100 | |
  734. careSetting.js | 100 | 100 | 100 | 100 | |
  735. context.js | 50 | 100 | 0 | 100 | |
  736. createOrder.js | 83.33 | 100 | 66.67 | 100 | |
  737. dateFormat.js | 100 | 100 | 100 | 100 | |
  738. draftActions.js | 100 | 100 | 100 | 100 | |
  739. draftLabOrderAction.js | 100 | 100 | 100 | 100 | |
  740. draftTableAction.js | 100 | 100 | 100 | 100 | |
  741. drug.js | 100 | 100 | 100 | 100 | |
  742. encounterRole.js | 100 | 100 | 100 | 100 | |
  743. encounterType.js | 100 | 100 | 100 | 100 | |
  744. fetchAllOrders.js | 100 | 50 | 100 | 100 | 11 |
  745. fetchOrders.js | 100 | 100 | 100 | 100 | |
  746. loading.js | 100 | 100 | 100 | 100 | |
  747. networkError.js | 100 | 100 | 100 | 100 | |
  748. orderAction.js | 100 | 100 | 100 | 100 | |
  749. orderEntryActions.js | 100 | 100 | 100 | 100 | |
  750. patient.js | 100 | 50 | 100 | 100 | 14 |
  751. settingEncounterRole.js | 95 | 100 | 100 | 93.33 | 32 |
  752. settingEncounterType.js | 93.75 | 50 | 100 | 92.31 | 25 |
  753. js/actions/labOrders | 92.31 | 85.71 | 90 | 94.74 | |
  754. fetchLabOrders.js | 100 | 100 | 100 | 100 | |
  755. labConceptsAction.js | 100 | 100 | 100 | 100 | |
  756. labOrderableAction.js | 100 | 100 | 100 | 100 | |
  757. settingLabOrderableAction.js | 90 | 75 | 85.71 | 93.33 | 33 |
  758. js/components | 95.65 | 100 | 83.33 | 100 | |
  759. Draft.jsx | 95.65 | 100 | 83.33 | 100 | |
  760. js/components/button | 100 | 100 | 100 | 100 | |
  761. IconButton.jsx | 100 | 100 | 100 | 100 | |
  762. js/components/drugOrderEntry | 97.56 | 91.43 | 94.12 | 97.44 | |
  763. index.jsx | 97.56 | 91.43 | 94.12 | 97.44 | 190 |
  764. js/components/drugOrderEntry/addForm | 59.02 | 62.96 | 56.41 | 61.54 | |
  765. AddForm.jsx | 53.77 | 63.49 | 46.67 | 56.44 |... 60,364,430,456 |
  766. DrugOrderPrintPreview.jsx | 100 | 100 | 100 | 100 | |
  767. FreeText.jsx | 100 | 53.85 | 100 | 100 | 38,48,55,74 |
  768. StandardDose.jsx | 88.89 | 64 | 83.33 | 88.89 | 237 |
  769. js/components/labOrderEntry | 98.46 | 87.5 | 100 | 100 | |
  770. LabEntryForm.jsx | 97.73 | 85.29 | 100 | 100 | 57,64,129,130,155 |
  771. LabPanelFieldSet.jsx | 100 | 100 | 100 | 100 | |
  772. LabTestFieldSet.jsx | 100 | 100 | 100 | 100 | |
  773. labData.js | 100 | 100 | 100 | 100 | |
  774. js/components/orderEntry | 88.27 | 61.31 | 83.33 | 89.41 | |
  775. Accordion.jsx | 100 | 83.33 | 100 | 100 | 7 |
  776. AllOrders.jsx | 86.67 | 100 | 60 | 92.86 | 76 |
  777. DrugOrderDetails.jsx | 100 | 100 | 100 | 100 | |
  778. LabOrderDetails.jsx | 100 | 50 | 100 | 100 | 24 |
  779. OrderEntryPage.jsx | 93.75 | 75 | 87.5 | 93.55 | 77,80,374,391 |
  780. OrderHeader.jsx | 100 | 80 | 100 | 100 | 33,41 |
  781. OrdersTable.jsx | 78.57 | 30.36 | 85.71 | 77.5 |... 83,184,185,186 |
  782. Paginate.jsx | 100 | 100 | 100 | 100 | |
  783. SelectOrderType.jsx | 66.67 | 62.5 | 57.14 | 73.33 | 16,22,26,30 |
  784. orderTypes.js | 100 | 100 | 100 | 100 | |
  785. js/components/searchDrug | 100 | 94.12 | 100 | 100 | |
  786. View.jsx | 100 | 90.91 | 100 | 100 | 34 |
  787. index.jsx | 100 | 100 | 100 | 100 | |
  788. js/components/tabs | 100 | 100 | 87.5 | 100 | |
  789. DosageTab.jsx | 100 | 100 | 66.67 | 100 | |
  790. DosageTabs.jsx | 100 | 100 | 100 | 100 | |
  791. js/middlewares | 96.43 | 90.63 | 100 | 96.23 | |
  792. errorMiddleware.js | 100 | 100 | 100 | 100 | |
  793. responseHandlerMiddleware.js | 95.74 | 90 | 100 | 95.65 | 64,65 |
  794. js/reducers | 98.6 | 95.24 | 95.83 | 98.58 | |
  795. activeOrderReducer.js | 100 | 87.5 | 100 | 100 | 25,61,70,74,80 |
  796. careSettingReducer.js | 100 | 100 | 100 | 100 | |
  797. contextReducer.js | 100 | 100 | 100 | 100 | |
  798. createOrderReducer.js | 100 | 100 | 100 | 100 | |
  799. dateFormatReducer.js | 100 | 100 | 100 | 100 | |
  800. drugSearchReducer.js | 100 | 100 | 100 | 100 | |
  801. encounterReducer.js | 100 | 100 | 100 | 100 | |
  802. encounterRoleReducer.js | 100 | 100 | 100 | 100 | |
  803. fetchOrdersReducer.js | 91.3 | 93.75 | 83.33 | 90.48 | 78,81 |
  804. index.js | 0 | 0 | 0 | 0 | |
  805. initialState.js | 0 | 0 | 0 | 0 | |
  806. locationReducer.js | 100 | 100 | 100 | 100 | |
  807. noteReducer.js | 100 | 100 | 100 | 100 | |
  808. orderEntryReducer.js | 100 | 100 | 100 | 100 | |
  809. orderSelectionReducer.js | 100 | 100 | 100 | 100 | |
  810. pastOrdersReducer.js | 100 | 100 | 100 | 100 | |
  811. patientReducer.js | 100 | 100 | 100 | 100 | |
  812. settingEncounterRoleReducer.js | 100 | 100 | 100 | 100 | |
  813. settingEncounterTypeReducer.js | 100 | 100 | 100 | 100 | |
  814. js/reducers/draftReducer | 71.93 | 68 | 73.33 | 70.37 | |
  815. draftDrugOrderReducer.js | 100 | 100 | 100 | 100 | |
  816. draftLabOrderReducer.js | 68.63 | 60 | 69.23 | 66.67 |... 13,114,116,118 |
  817. index.js | 0 | 0 | 0 | 0 | |
  818. js/reducers/labOrders | 100 | 100 | 100 | 100 | |
  819. fetchLabOrderReducer.js | 100 | 100 | 100 | 100 | |
  820. labConceptsReducer.js | 100 | 100 | 100 | 100 | |
  821. labOrderableReducer.js | 100 | 100 | 100 | 100 | |
  822. settingLabOrderableReducer.js | 100 | 100 | 100 | 100 | |
  823. js/rest | 7.69 | 0 | 0 | 7.69 | |
  824. encounterRest.js | 7.69 | 0 | 0 | 7.69 |... 20,24,26,27,29 |
  825. js/sagas | 8.16 | 0 | 0 | 9.3 | |
  826. index.js | 66.67 | 100 | 0 | 66.67 | 10 |
  827. orderSaga.js | 4.35 | 0 | 0 | 5 |... 07,109,111,116 |
  828. js/utils | 86.21 | 77.27 | 75 | 88 | |
  829. constants.js | 100 | 100 | 100 | 100 | |
  830. globalProperty.js | 85.71 | 100 | 66.67 | 100 | |
  831. helpers.js | 76.92 | 77.27 | 66.67 | 75 | 14,15,19 |
  832. toast.js | 100 | 100 | 100 | 100 | |
  833. --------------------------------------|----------|----------|----------|----------|-------------------|
  834. Handlebars: Access has been denied to resolve the property "statements" because it is not an "own property" of its parent.
  835. You can add a runtime option to disable the check or this warning:
  836. See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details
  837. Handlebars: Access has been denied to resolve the property "branches" because it is not an "own property" of its parent.
  838. You can add a runtime option to disable the check or this warning:
  839. See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details
  840. Handlebars: Access has been denied to resolve the property "functions" because it is not an "own property" of its parent.
  841. You can add a runtime option to disable the check or this warning:
  842. See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details
  843. Handlebars: Access has been denied to resolve the property "lines" because it is not an "own property" of its parent.
  844. You can add a runtime option to disable the check or this warning:
  845. See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details
  846. Summary of all failing tests
  847. FAIL tests\components\DrugOrderEntry\addForm\AddForm.test.jsx (7.282s)
  848. ● Test for adding a new drug order › should render component
  849.  
  850. expect(value).toMatchSnapshot()
  851.  
  852. Received value does not match stored snapshot 1.
  853.  
  854. - Snapshot
  855. + Received
  856.  
  857. @@ -82,7 +82,17 @@
  858. }
  859. />
  860. <br />
  861. </DosageTab>
  862. </DosageTabs>
  863. + <button
  864. + onClick={[Function]}
  865. + variant="primary"
  866. + >
  867. + Launch demo modal
  868. + </button>
  869. + <MyVerticallyCenteredModal
  870. + onHide={[Function]}
  871. + show={false}
  872. + />
  873. </div>
  874. </div>
  875.  
  876. 81 | it('should render component', () => {
  877. 82 | const wrapper = shallowWithIntl(<AddForm {...props} />);
  878. > 83 | expect(wrapper).toMatchSnapshot();
  879. 84 | });
  880. 85 |
  881. 86 | describe('Outpatient orders', () => {
  882.  
  883. at Object.<anonymous> (tests/components/DrugOrderEntry/addForm/AddForm.test.jsx:83:21)
  884.  
  885. ● Test for adding a new drug order › Outpatient orders › encountered a declaration exception
  886.  
  887. TypeError: (0 , _react.useState) is not a function
  888.  
  889. 85 |
  890. 86 | describe('Outpatient orders', () => {
  891. > 87 | const wrapper = mountWithIntl(<AddForm {...props} />);
  892. 88 | describe('Activate and deactivate Confirm button under standard dosing form', () => {
  893. 89 | beforeEach(() => {
  894. 90 | wrapper.find('[name="dose"]').simulate('change', { target: { name: 'dose', value: 8 } });
  895.  
  896. at node_modules/react-bootstrap/cjs/Modal.js:112:39
  897. at updateForwardRef (node_modules/react-dom/cjs/react-dom.development.js:13045:20)
  898. at beginWork (node_modules/react-dom/cjs/react-dom.development.js:13836:14)
  899. at performUnitOfWork (node_modules/react-dom/cjs/react-dom.development.js:15863:12)
  900. at workLoop (node_modules/react-dom/cjs/react-dom.development.js:15902:24)
  901. at renderRoot (node_modules/react-dom/cjs/react-dom.development.js:15942:7)
  902. at performWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:16560:22)
  903. at performWork (node_modules/react-dom/cjs/react-dom.development.js:16482:7)
  904. at performSyncWork (node_modules/react-dom/cjs/react-dom.development.js:16454:3)
  905. at requestWork (node_modules/react-dom/cjs/react-dom.development.js:16354:5)
  906. at scheduleWork$1 (node_modules/react-dom/cjs/react-dom.development.js:16218:11)
  907. at scheduleRootUpdate (node_modules/react-dom/cjs/react-dom.development.js:16785:3)
  908. at updateContainerAtExpirationTime (node_modules/react-dom/cjs/react-dom.development.js:16812:10)
  909. at updateContainer (node_modules/react-dom/cjs/react-dom.development.js:16839:10)
  910. at ReactRoot.Object.<anonymous>.ReactRoot.render (node_modules/react-dom/cjs/react-dom.development.js:17122:3)
  911. at node_modules/react-dom/cjs/react-dom.development.js:17262:14
  912. at unbatchedUpdates (node_modules/react-dom/cjs/react-dom.development.js:16679:10)
  913. at legacyRenderSubtreeIntoContainer (node_modules/react-dom/cjs/react-dom.development.js:17258:5)
  914. at Object.render (node_modules/react-dom/cjs/react-dom.development.js:17317:12)
  915. at Object.render (node_modules/enzyme-adapter-react-16/build/ReactSixteenAdapter.js:218:50)
  916. at new ReactWrapper (node_modules/enzyme/build/ReactWrapper.js:98:16)
  917. at mount (node_modules/enzyme/build/mount.js:19:10)
  918. at mountWithIntl (node_modules/@openmrs/react-components/lib/components/localization/test/helpers/intl-test.js:50:28)
  919. at Suite.<anonymous> (tests/components/DrugOrderEntry/addForm/AddForm.test.jsx:87:21)
  920. at Suite.<anonymous> (tests/components/DrugOrderEntry/addForm/AddForm.test.jsx:86:3)
  921. at Object.<anonymous> (tests/components/DrugOrderEntry/addForm/AddForm.test.jsx:80:1)
  922.  
  923. ● Test AddForm state › should update state
  924.  
  925. TypeError: (0 , _react.useState) is not a function
  926.  
  927. 197 | describe('Test AddForm state', () => {
  928. 198 | it('should update state', () => {
  929. > 199 | mountedComponent = mountWithIntl(<AddForm {...props} />);
  930. 200 | getComponent().setState({ fields: { dose: 11 } });
  931. 201 | getComponent()
  932. 202 | .find('[name="dose"]')
  933.  
  934. at node_modules/react-bootstrap/cjs/Modal.js:112:39
  935. at updateForwardRef (node_modules/react-dom/cjs/react-dom.development.js:13045:20)
  936. at beginWork (node_modules/react-dom/cjs/react-dom.development.js:13836:14)
  937. at performUnitOfWork (node_modules/react-dom/cjs/react-dom.development.js:15863:12)
  938. at workLoop (node_modules/react-dom/cjs/react-dom.development.js:15902:24)
  939. at renderRoot (node_modules/react-dom/cjs/react-dom.development.js:15942:7)
  940. at performWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:16560:22)
  941. at performWork (node_modules/react-dom/cjs/react-dom.development.js:16482:7)
  942. at performSyncWork (node_modules/react-dom/cjs/react-dom.development.js:16454:3)
  943. at requestWork (node_modules/react-dom/cjs/react-dom.development.js:16354:5)
  944. at scheduleWork$1 (node_modules/react-dom/cjs/react-dom.development.js:16218:11)
  945. at scheduleRootUpdate (node_modules/react-dom/cjs/react-dom.development.js:16785:3)
  946. at updateContainerAtExpirationTime (node_modules/react-dom/cjs/react-dom.development.js:16812:10)
  947. at updateContainer (node_modules/react-dom/cjs/react-dom.development.js:16839:10)
  948. at ReactRoot.Object.<anonymous>.ReactRoot.render (node_modules/react-dom/cjs/react-dom.development.js:17122:3)
  949. at node_modules/react-dom/cjs/react-dom.development.js:17262:14
  950. at unbatchedUpdates (node_modules/react-dom/cjs/react-dom.development.js:16679:10)
  951. at legacyRenderSubtreeIntoContainer (node_modules/react-dom/cjs/react-dom.development.js:17258:5)
  952. at Object.render (node_modules/react-dom/cjs/react-dom.development.js:17317:12)
  953. at Object.render (node_modules/enzyme-adapter-react-16/build/ReactSixteenAdapter.js:218:50)
  954. at new ReactWrapper (node_modules/enzyme/build/ReactWrapper.js:98:16)
  955. at mount (node_modules/enzyme/build/mount.js:19:10)
  956. at mountWithIntl (node_modules/@openmrs/react-components/lib/components/localization/test/helpers/intl-test.js:50:28)
  957. at Object.<anonymous> (tests/components/DrugOrderEntry/addForm/AddForm.test.jsx:199:24)
  958.  
  959.  
  960. Snapshot Summary
  961. › 1 snapshot test failed in 1 test suite. Inspect your code changes or run `npm test -- -u` to update them.
  962.  
  963. Test Suites: 1 failed, 66 passed, 67 total
  964. Tests: 3 failed, 2 skipped, 296 passed, 301 total
  965. Snapshots: 1 failed, 21 passed, 22 total
  966. Time: 61.883s
  967. Ran all test suites.
  968. npm ERR! code ELIFECYCLE
  969. npm ERR! errno 1
  970. npm ERR! @openmrs/orderentry-owa@1.2.5-SNAPSHOT test: `npm run lint && jest --coverage --maxWorkers=4`
  971. npm ERR! Exit status 1
  972. npm ERR!
  973. npm ERR! Failed at the @openmrs/orderentry-owa@1.2.5-SNAPSHOT test script.
  974. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  975.  
  976. npm ERR! A complete log of this run can be found in:
  977. npm ERR! C:\Users\NextGen\AppData\Roaming\npm-cache\_logs\2021-04-26T07_31_25_179Z-debug.log
  978. npm ERR! code ELIFECYCLE
  979. npm ERR! errno 1
  980. npm ERR! @openmrs/orderentry-owa@1.2.5-SNAPSHOT build:prod: `npm run test && npm run build`
  981. npm ERR! Exit status 1
  982. npm ERR!
  983. npm ERR! Failed at the @openmrs/orderentry-owa@1.2.5-SNAPSHOT build:prod script.
  984. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  985.  
  986. npm ERR! A complete log of this run can be found in:
  987. npm ERR! C:\Users\NextGen\AppData\Roaming\npm-cache\_logs\2021-04-26T07_31_25_261Z-debug.log
  988. PS F:\digimodules\openmrs-owa-orderentry>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement