@@ -23,9 +23,8 @@ describe("schemas", () => {
2323 expect ( schema . ctor ) . toBe ( null ) ;
2424 } ) ;
2525
26- it ( "has a factory and the factory registers the schema " , ( ) => {
26+ it ( "has a factory" , ( ) => {
2727 expect ( error ( "ack" , "Error" , 0 , [ ] , [ ] ) ) . toEqual ( schema ) ;
28- expect ( TypeRegistry . for ( "ack" ) . getSchema ( schema . name ) ) . toEqual ( schema ) ;
2928 } ) ;
3029
3130 it ( "has an instanceOf operator" , ( ) => {
@@ -44,9 +43,8 @@ describe("schemas", () => {
4443 it ( "has a value schema" , ( ) => {
4544 expect ( schema . valueSchema ) . toBe ( 0 as SchemaRef ) ;
4645 } ) ;
47- it ( "has a factory and the factory registers the schema " , ( ) => {
46+ it ( "has a factory" , ( ) => {
4847 expect ( list ( "ack" , "List" , 0 , 0 ) ) . toEqual ( schema ) ;
49- expect ( TypeRegistry . for ( "ack" ) . getSchema ( schema . name ) ) . toEqual ( schema ) ;
5048 } ) ;
5149 it ( "has an instanceOf operator" , ( ) => {
5250 const object = { ...schema } ;
@@ -65,9 +63,8 @@ describe("schemas", () => {
6563 expect ( schema . keySchema ) . toBe ( 0 as SchemaRef ) ;
6664 expect ( schema . valueSchema ) . toBe ( 1 as SchemaRef ) ;
6765 } ) ;
68- it ( "has a factory and the factory registers the schema " , ( ) => {
66+ it ( "has a factory" , ( ) => {
6967 expect ( map ( "ack" , "Map" , 0 , 0 , 1 ) ) . toEqual ( schema ) ;
70- expect ( TypeRegistry . for ( "ack" ) . getSchema ( schema . name ) ) . toEqual ( schema ) ;
7168 } ) ;
7269 it ( "has an instanceOf operator" , ( ) => {
7370 const object = { ...schema } ;
@@ -86,9 +83,8 @@ describe("schemas", () => {
8683 expect ( schema . input ) . toEqual ( "unit" ) ;
8784 expect ( schema . output ) . toEqual ( "unit" ) ;
8885 } ) ;
89- it ( "has a factory and the factory registers the schema " , ( ) => {
86+ it ( "has a factory" , ( ) => {
9087 expect ( op ( "ack" , "Operation" , 0 , "unit" , "unit" ) ) . toEqual ( schema ) ;
91- expect ( TypeRegistry . for ( "ack" ) . getSchema ( schema . name ) ) . toEqual ( schema ) ;
9288 } ) ;
9389 } ) ;
9490
@@ -121,9 +117,8 @@ describe("schemas", () => {
121117 expect ( schema ) . toBeInstanceOf ( Schema ) ;
122118 expect ( schema ) . toBeInstanceOf ( SimpleSchema ) ;
123119 } ) ;
124- it ( "has a factory and the factory registers the schema " , ( ) => {
120+ it ( "has a factory" , ( ) => {
125121 expect ( sim ( "ack" , "Simple" , 0 , 0 ) ) . toEqual ( schema ) ;
126- expect ( TypeRegistry . for ( "ack" ) . getSchema ( schema . name ) ) . toEqual ( schema ) ;
127122 } ) ;
128123 it ( "has an instanceOf operator" , ( ) => {
129124 const object = { ...schema } ;
@@ -143,9 +138,8 @@ describe("schemas", () => {
143138 expect ( schema . memberNames ) . toEqual ( [ "a" , "b" , "c" ] ) ;
144139 expect ( schema . memberList ) . toEqual ( [ 0 , 1 , 2 ] ) ;
145140 } ) ;
146- it ( "has a factory and the factory registers the schema " , ( ) => {
141+ it ( "has a factory" , ( ) => {
147142 expect ( struct ( "ack" , "Structure" , 0 , [ "a" , "b" , "c" ] , [ 0 , 1 , 2 ] ) ) . toEqual ( schema ) ;
148- expect ( TypeRegistry . for ( "ack" ) . getSchema ( schema . name ) ) . toEqual ( schema ) ;
149143 } ) ;
150144 it ( "has an instanceOf operator" , ( ) => {
151145 const object = { ...schema } ;
0 commit comments