11import { expect } from 'chai' ;
22import { beforeEach , describe , it } from 'mocha' ;
3- import {
4- computeGraphs ,
5- getAnyVals
6- } from '../src/actions/dependencies' ;
3+ import { computeGraphs , getAnyVals } from '../src/actions/dependencies' ;
74import { getCallbacksByInput } from '../src/actions/dependencies_ts' ;
85import { EventEmitter } from '../src/actions/utils' ;
96
@@ -44,9 +41,7 @@ describe('dependencies — MATCH validation (#2462)', () => {
4441 [
4542 {
4643 output : 'out.children' ,
47- inputs : [
48- { id : '{"id":["MATCH"]}' , property : 'n_clicks' }
49- ] ,
44+ inputs : [ { id : '{"id":["MATCH"]}' , property : 'n_clicks' } ] ,
5045 state : [ ] ,
5146 no_output : false
5247 }
@@ -62,9 +57,7 @@ describe('dependencies — MATCH validation (#2462)', () => {
6257 [
6358 {
6459 output : '' ,
65- inputs : [
66- { id : '{"id":["MATCH"]}' , property : 'n_clicks' }
67- ] ,
60+ inputs : [ { id : '{"id":["MATCH"]}' , property : 'n_clicks' } ] ,
6861 state : [ ] ,
6962 no_output : true
7063 }
@@ -80,12 +73,8 @@ describe('dependencies — MATCH validation (#2462)', () => {
8073 [
8174 {
8275 output : 'out.children' ,
83- inputs : [
84- { id : '{"id":["MATCH"]}' , property : 'n_clicks' }
85- ] ,
86- state : [
87- { id : '{"id":["MATCH"]}' , property : 'id' }
88- ] ,
76+ inputs : [ { id : '{"id":["MATCH"]}' , property : 'n_clicks' } ] ,
77+ state : [ { id : '{"id":["MATCH"]}' , property : 'id' } ] ,
8978 no_output : false
9079 }
9180 ] ,
@@ -101,7 +90,10 @@ describe('dependencies — MATCH validation (#2462)', () => {
10190 {
10291 output : '{"id":["ALL"]}.children' ,
10392 inputs : [
104- { id : '{"type":"btn","idx":["MATCH"]}' , property : 'n_clicks' }
93+ {
94+ id : '{"type":"btn","idx":["MATCH"]}' ,
95+ property : 'n_clicks'
96+ }
10597 ] ,
10698 state : [ ] ,
10799 no_output : false
@@ -118,9 +110,7 @@ describe('dependencies — MATCH validation (#2462)', () => {
118110 [
119111 {
120112 output : 'out.children' ,
121- inputs : [
122- { id : '{"id":["ALLSMALLER"]}' , property : 'value' }
123- ] ,
113+ inputs : [ { id : '{"id":["ALLSMALLER"]}' , property : 'value' } ] ,
124114 state : [ ] ,
125115 no_output : false
126116 }
@@ -139,9 +129,7 @@ describe('dependencies — MATCH validation (#2462)', () => {
139129 [
140130 {
141131 output : '{"a":["MATCH"]}.children' ,
142- inputs : [
143- { id : '{"b":["MATCH"]}' , property : 'n_clicks' }
144- ] ,
132+ inputs : [ { id : '{"b":["MATCH"]}' , property : 'n_clicks' } ] ,
145133 state : [ ] ,
146134 no_output : false
147135 }
@@ -173,7 +161,9 @@ describe('dependencies — MATCH validation (#2462)', () => {
173161 config
174162 ) ;
175163 const msgs = errors . map ( e => e . message ) ;
176- expect ( msgs ) . to . include ( 'Mismatched `MATCH` wildcards across `Output`s' ) ;
164+ expect ( msgs ) . to . include (
165+ 'Mismatched `MATCH` wildcards across `Output`s'
166+ ) ;
177167 } ) ;
178168} ) ;
179169
@@ -186,9 +176,7 @@ describe('dependencies — MATCH trigger resolvedId (#2462)', () => {
186176 [
187177 {
188178 output : 'out.children' ,
189- inputs : [
190- { id : '{"id":["MATCH"]}' , property : 'n_clicks' }
191- ] ,
179+ inputs : [ { id : '{"id":["MATCH"]}' , property : 'n_clicks' } ] ,
192180 state : [ ] ,
193181 no_output : false
194182 }
@@ -208,9 +196,7 @@ describe('dependencies — MATCH trigger resolvedId (#2462)', () => {
208196 [
209197 {
210198 output : 'out.children' ,
211- inputs : [
212- { id : '{"id":["MATCH"]}' , property : 'n_clicks' }
213- ] ,
199+ inputs : [ { id : '{"id":["MATCH"]}' , property : 'n_clicks' } ] ,
214200 state : [ ] ,
215201 no_output : false
216202 }
0 commit comments